• Resolved rodeored

    (@rodeored)


    How do set up a page so that when the user goes to that page the users is automatically logged in via facebook.
    The button class is _4z_f fwb so I tried to click it on page load via jQuery:
    jQuery(function($){
    $(‘._4z_f fwb’).click();
    });

    But its not working.
    Also, where is the javascript that triggers the login? I could probably just copy it, but I can’t find it.
    https://www.ads-software.com/plugins/wp-fb-autoconnect/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rodeored

    (@rodeored)

    actually I tried
    $(‘fwb’).click();

    Plugin Author justin_k

    (@justin_k)

    Hi rodeored,

    There are a number of reasons why what you’re doing won’t work properly (i.e. Facebook may change the button ID whenever they like, the button may not have asynchronously initialized by the time you’re trying to programmatically click it, there are other types of buttons – i.e. html-only buttons not rendered by xfbml, etc). Also, the user will ultimately have to interact with the fb popup anyway. If you want to force users to login as soon as they visit your page, a much better approach would just be to create your own modal dialog-like div that includes the button and a message, so they can’t do anything but click it.

    In any case, this behavior is not a supported plugin feature, & goes well beyond the scope of supporting the plugin itself; please see https://www.justin-klein.com/projects/wp-fb-autoconnect/#faq36. I will add automatic logins to my todo/request list, to look deeper into the next time I work on supplementing the plugin’s functionality.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Automatic login’ is closed to new replies.