views:

2774

answers:

2

I'm looking for example PHP code (preferably using the FB PHP library) that does the following:

  • Let my website connect to my FB account when i log into FB connect.
  • Store my facebook credentials (email hash and FBID?) locally
  • Log me out of Facebook connect when I log out of my website
  • Automatically log me back into FB connect without the connect dialog when I log back into my site using the stored credentials.

Basically trying to do what sites like digg do with FB connect but I can't find a good (basic) example of exactly what I need. (which I'd of assumed to be a common need to FB connect websites)

Any suggestions?

Thanks

+3  A: 

This has everything: http://wiki.developers.facebook.com/index.php/The%5FRun%5FAround

Brian
+1  A: 

I wrote this tutorial about it:

http://www.barattalo.it/facebook-connect-tutorial/

It's not exactly what you're looking for, but it's quite near. I hope this will help you integrating your site with facebook connect function. Bye.

Pons
+1. Thanks for the resource.
gnucom