I'm looking for a PHP tutorial or example of how to set up a facebook connect site like digg. Basically allowing local users to connect their facebook accounts to their local accounts indefinitely (until they opt out). This would then automatically reconnect them to facebook every time they log in with their local accounts.
I've been trying for a long time to find a complete start-to-finish tutorial. Any suggestions would be greatly appreciated.
Facebook provides extensive documentation, including the full source of a sample PHP website, "The Run Around", that has all the necessary functionality.
There's lots of useful stuff, including the exact steps that occur between Facebook, the browser, and your site on the developer documentation wiki. Any specific questions you have after reading the docs?