Monthly Archives: September 2008

Facebook Demo Code

I have been looking at Facebook Demo codes from the Developer.Facebook.com website. (http://svn.facebook.com/svnroot/platform/samples/smiley/) Fortunately, they all contain a number of s/w glitches. I spend a good day trying to figure out where those problems were.
1. “Header already sent” error on User.php file in the “therunaround” project. Solution: need to comment out setcookie(USER_COOKIE_NAME, 'deleted');
2. Facebook button not showing up in Safari browser, with the Facebook Connect demo.zip, Solution: must include the <link rel="stylesheet" href="http://static.ak.connect.facebook.com/css/fb_connect.css" type="text/css" />
3. Cannot generate Template Bundle ID from the “therunaround” project’s “register_feed_forms.php” file. Solution: comment out the "verify_facebook_callback();" line.

Below, I have uploaded corrected zip files.
Facebook Connect Demo.zip
therunaround.zip