- you want to provide an option for users without Facebook accounts
- your site needs additional information that Facebook doesn't provide
- a traditional HTML form suits your site more
The registration plugin is an iframe that websites can add with just one line of code, and customize to request the specific fields required to create an account. When a user is logged into Facebook and arrives at the registration plugin on a website, they'll see that the form is prefilled with the relevant information he or she has already shared on their Facebook profile. Users can see the specific information the site is requesting of them, giving them more control to decide whether to sign up.
To integrate the registration plugin, simply add the iframe or XFBML to your site:
<iframe src="http://www.facebook.com/plugins/registration.php?
client_id=113869198637480&
redirect_uri=http%3A%2F%2Fdevelopers.facebook.com%2Ftools%2Fecho%2F&
fields=name,birthday,gender,location,email"
scrolling="auto"
frameborder="no"
style="border:none"
allowTransparency="true"
width="100%"
height="310px">
</iframe>
redirect-uri should point to the page which will process your signed_request. You can customize the fields attribute to suit your needs. See the docs for a list of valid fields.<fb:registration
fields="name,birthday,gender,location,email"
redirect-uri="http://developers.facebook.com/tools/echo/">
</fb:registration>
redirect-uri and fields are identical to above. You must use your own app_id for the redirect-uri to be on your domain.






