How does this Facebook widget work?

3 replies
  • WEB DESIGN
  • |
Hey guys, so I'm sure you've seen the widget that says something like: "Or login with Facebook" and when you click it, your account gets created on a certain website using your Facebook login info. My question is, is this button connected to a specific Facebook "page"? and does the website then know the person's email address or have a way to contact them somehow? I'm debating whether to use this widget, instead of a generic optin form, for a new non-IM website I'm creating. But wasn't sure exactly how the widget worked.

Thanks
#facebook #widget #work
  • Profile picture of the author ContentWritingPhD
    Banned
    Brad, I've seen several sites that might be using that WordPress plugin you mentioned. What's the name of that plugin, btw?
    {{ DiscussionBoard.errors[8388849].message }}
  • Profile picture of the author brutecky
    Log in with Facebook works as follows.

    1) The site viewer clicks the log in with FB button.
    2) This triggers site code to send a request to Facebook via there API
    3) Facebook responds with a permission dialog for the user to approve (approve the app)
    4) If the user approves Facebook then responds to the site code with a Token (a long string of unique characters)
    5) The site code then uses this Token to request the info it needs, this is called a signed request, as the request for the info is 'signed' with the Token it got in step 4
    6) The site code then takes the info it got from Facebook such as name ,email etc. and then saves it to the database as if the user had filled it out in the sites signup form.
    7) The site code then logs in the user with this account it created automatically for the user in step 6

    You just created an account for someone and logged them in with Facebook.

    How do I know how this works?
    I have written over 150 Facebook apps, and over 1 million lines of Facebook integrated code.

    Brett

    PS) If all this seems confusing it should cost around $50 for this to be done for you on a freelance site, its generally a one hour or less job for someone who knows what there doing. I know this as well because I have done it on freelance sites scores of times for people.
    {{ DiscussionBoard.errors[8388952].message }}
    • Profile picture of the author bengirwb
      Quote:

      ". . . would like to access your public profile, friend list, email address, birthday, hometown, photos and personal description."

      When I see that notice, I leave that site jiffy quick.
      {{ DiscussionBoard.errors[8389008].message }}

Trending Topics