How can I register facebook users on my site ?

I am trying to find a walk through on how to register users via facebook onto my site.

The facebook developers site keeps confusing me and I was hoping there where easier tutorials to follow.

Answers


Stephen, It can be a little complicated.

You have to combine the documentation at:

http://developers.facebook.com/docs/guides/web/

http://developers.facebook.com/docs/plugins/registration/

Boiling it down to the simplest case:

<html>
<head>
  <title>My Facebook Registration Page</title>
</head>
<body>
  <div id="fb-root"></div>
  <script src="http://connect.facebook.net/en_US/all.js">
  </script>
  <script>
     FB.init({ 
        appId:'yourAppID', cookie:true, 
        status:true, xfbml:true 
     });
  </script>
     <fb:registration
        fields="[{'name':'name'}, {'name':'email'},
        {'name':'favorite_car','description':'What is your favorite car?',
        'type':'text'}]" redirect-uri="Your processing URL">
     </fb:registration>
</body>
</html>

Facebook will return an encrypted form field with all the user data called "signed Request" You will need to decrypt this field with your secret key. There is an PHP example at the bottom of http://developers.facebook.com/docs/plugins/registration/


Need Your Help

Removing "www" from the domain directs to different site

html web dns

A novice here. The support from mediaTemple and my current host have been quite unhelpful, so stackOverflow may be my hero.

go to the next step if {{!EXTRACT}} is true

regex macros eval imacros

i'm new here and newbie in imacros and javascript