Forums

Simple Facebook Connect
Register loop (18 posts)

  1. theoutdoors
    Member
    Posted 4 months ago #

    Hi,

    I just installed the plugin and I'm testing it out. Right now I can successfully register via FB and the user is created in the WP database. However, once registration occurs I am immediately taken back to /wp-login.php?action=register, and I am unable to log in.

    If I go directly to /wp-login.php, I am redirected to /wp-login.php?action=register again, and I'm in an endless registration loop. I never see the login screen.

    Any ideas?

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. Prasad Thombre
    Member
    Posted 4 months ago #

    please check Registration Settings & Allow new registrations

  3. theoutdoors
    Member
    Posted 4 months ago #

    Thanks for the suggestion, but that was already set. Any other ideas?

  4. craighwk
    Member
    Posted 4 months ago #

    I am having the exact same issue on a new install of WordPress. I hit the Register link and a window pops open to register. It tells me I can enter my Facebook information to fill out the rest of my profile, so I click it and verify my Facebook account. I even get the Add New Device window that comes next. After that, I am taken back to the same registration window and nothing has been filled out. I am now in a loop.

  5. craighwk
    Member
    Posted 4 months ago #

    Here's something else I just found...

    When I enter my facebook data and it takes me back to the login screen, if I hit the Browser's refresh button on the registration screens, it refreshes with my correct Facebook information and then I can continue to register.

  6. OC2PS
    Member
    Posted 4 months ago #

    I think you might be facing an authentication issue. Please check your Facebook app, and make sure you have specified the app domain.

  7. flero8770
    Member
    Posted 4 months ago #

    Same problem, app domain is specified.

  8. Prasad Thombre
    Member
    Posted 3 months ago #

    are you uys using WordPress Multi site configuration?

  9. flero8770
    Member
    Posted 3 months ago #

    No, it's a local test site. I tried with an online test site too and it's the same.

  10. andrewwise
    Member
    Posted 3 months ago #

    I'm having the same problem.

    1) user clicks "register"
    2) they are added to the wordpress registration
    3) but they stay on this page:

    example.com/wp-admin/profile.php?updated=true

    4) if i click "register" again, it then logs the user in correctly to this page:

    example.com/wp-admin/profile.php?updated=true

  11. BillRamos
    Member
    Posted 3 months ago #

    I'm also having this issue. Has anyone figured out how to bypass the loop?

  12. selfantagonist
    Member
    Posted 3 months ago #

    I am having the same problem. The login page keeps looping to the register page. However, if a person is not logged into Facebook it stays on the login in page. In the simple-facebook-connect/sfc-login.php is

    // fix the reauth redirect problem
    add_action('login_form_login','sfc_login_reauth_disable');
    function sfc_login_reauth_disable() {
    	$_REQUEST['reauth'] = true;
    }

    Have tried that both set to true and to false and the problem is persists.

  13. Otto
    Tech Ninja
    Posted 3 months ago #

    Check to see if the user created is actually connected to Facebook.

    Basically, if you have the FB register system enabled, then when a user is connected via Facebook to your site but there is no user in the database matching that person, it shuffles them off to the register screen.

    Solving the loop means: a) disconnecting from Facebook via logout or clearing your cookies and b) logging into WP normally. Then you can go to your user profile page and connect your user account to your Facebook account.

    Registering via your FB credentials should do this connection thing for you.

  14. selfantagonist
    Member
    Posted 3 months ago #

    Yes, this lets me work around the FB login system, but does me no good if a random person is trying to access the site. Ideally, I need it to shuffle them back to the login in screen, that way they can login in if they have a non-Facebook account (not everyone is necessarily going to want their Facebook linked to every site they go on), or can click the register button if they do not have an account.

  15. Otto
    Tech Ninja
    Posted 3 months ago #

    It doesn't send them to the register screen until they've clicked on the FB Login button.

  16. selfantagonist
    Member
    Posted 3 months ago #

    All I know is mine was, ended up removing `add_action('sfc_login_new_fb_user', 'sfc_register_redirect');
    function sfc_register_redirect() {
    wp_redirect(site_url('wp-login.php?action=register', 'login'));
    exit;
    }` from the register.php and it seems to be working fine.

  17. rivermonster
    Member
    Posted 3 months ago #

    same think here. When I am already logged in to FB and open new tab to log in with my WP account into my site even if I didn't click on the fb login , I get redirected to register form prifilled with my FB credentials. I 'm agree with selfantagonist that not everyone want to connect fb with any site account.

  18. rivermonster
    Member
    Posted 3 months ago #

    Ok I tried with another FB account and works fine, the loop was because I have the same email for my WP and FB account.

Reply

You must log in to post.

About this Plugin

About this Topic