• Hi,
    I have a site that has a WP backbone. My login page is a bespoke page. I’ve been working today on allowing people to log in to my site with their facebook login details.
    By reading and swearing and reading some more I’ve got to the stage whereby someone can type their details into a facebook login box and facebook will send me back their details such as email addy, name etc.
    I’m stuck on how to get them logged in to my site.
    I have their email address (which is also the username on my site) but how do I use that to get them logged in?
    I have a variable called “user_ID” that gets set when someone is logged in (i.e. properly logged in through my site). I’m struggling with linking the info that facebook sends me with my code?
    I can send the fb email addy to my site but how do I authorise there password??

    I’m sorry if that sounds vague but, in a nutshell, the visitor logs in to fb and gets redirected back to my site. How do I then ‘link’ them to their username in my own ‘users’ table because, as far as my site is concerned, they still haven’t entered their password.

    I realise that this is a long shot as I really need to talk to someone who really knows their stuff when it comes to WP but I thought this would be the place to find that ‘someone’ ;-))

    Anyone any ideas on this??

    Many thanks

    John

Viewing 3 replies - 1 through 3 (of 3 total)
  • http://wordpress.org/extend/plugins/simple-facebook-connect/

    Might be overkill, but perhaps looking through the code in that plugin will help, as it has that feature

    jnnuarm plugin r wp fb connect is the best ways for ever and ever

    Thread Starter Johnny T

    (@johnny-t)

    Thanks for the replies. Didn’t really want to go down the Janrain root as it’s overkill.

    I did install Simple FB Connect but it stopped my shop plugin (wp-ecommerce) working so I uninstalled it.

    Anyone know how to get a ‘username’ field and get someone logged in with just that? i.e. what function to run?

    As in:
    wp_login_function($username)

    Returns correct cookies etc….?

    Any more ideas?

    A big thanks to Rev and sairameshp for their ideas so far.

    Cheers

    John 😉

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Letting FB users login to WP’ is closed to new replies.