Support » Plugin: Simple Facebook Connect » [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'},

    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.



Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Samuel Wood (Otto)


    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.

    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 ?

    Plugin Author Samuel Wood (Otto)


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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin : Simple Facebook Connect] Register with Facebook’ is closed to new replies.