[Plugin : Simple Facebook Connect] Register with Facebook
-
Hi there,
I would like my user to be able to choose their password, so I decided to edit sfc-register.php to add a field in the fb:registration form :
$fields = "[ {'name':'name', 'view':'prefilled'}, {'name':'username', 'description':'Choose a username', 'type':'text'}, {'name':'email'}, {'name':'gender'}, {'name':'password'} ]";The form looks totally fine and I wonder how I should pass the chosen password to the WP DB.
I tried to edit the function sfc_register_handle_signed_request() to add these lines :
} else { // new user, set the registration info $_POST['user_login'] = $info['username']; $_POST['user_email'] = $info['email']; $_POST['user_pass'] = $info['password']; }It doesn’t work, I still get an email with an auto generated password.
Any advice will be much appreciated !
Moreover, I used the Login With Ajax plugin to display both login and register form… It works fine. Just need to figure out how to add the Facebook connect button into the widget.
Cheers,
Jk_
The topic ‘[Plugin : Simple Facebook Connect] Register with Facebook’ is closed to new replies.