Ready to get started?Download WordPress


Simple Facebook Connect
[Plugin : Simple Facebook Connect] Register with Facebook (4 posts)

  1. jk_
    Posted 2 years ago #

    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'},

    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.



  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    Can't be done. The plugin is using the standard registration mechanisms in WordPress, and that code doesn't allow you to choose a password at registration time.

    To do it, you'd need to rewrite the plugin to actually perform the registration. It doesn't do any of that currently.

  3. jk_
    Posted 2 years ago #

    Ok Otto, thanks for your answer !

    I will use Register Plus Redux to properly configure my register form...

    But is it possible that during the registration process I connect the facebook account of the user with his new profile ?

  4. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    Not really any need, as long as they use the same email address. Login now matches on emails and auto-connects users.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic