How can I register facebook users on my site ? -
i trying find walk through on how register users via facebook onto site.
the facebook developers site keeps confusing me , hoping there easier tutorials follow.
stephen, can little complicated.
you have combine documentation at:
http://developers.facebook.com/docs/guides/web/
http://developers.facebook.com/docs/plugins/registration/
boiling down 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 favorite car?', 'type':'text'}]" redirect-uri="your processing url"> </fb:registration> </body> </html>
facebook return encrypted form field user data called "signed request" need decrypt field secret key. there php example @ bottom of http://developers.facebook.com/docs/plugins/registration/
Comments
Post a Comment