Well download the facebook api client: http://developers.facebook.com/clientlibs/facebook-platform.tar.gz Create a new folder, and put the client folder from that download in it. Go to the facebook developer: http://www.faceook.com/developers Set Up A New Application and get your api key and secret key Name this file index.php and put your api key and secret key in. Change the path to the swf. <? // the facebook client library include_once 'client/facebook.php'; $api_key = ""; $secret = ""; $facebook = new Facebook($api_key, $secret); $facebook->require_frame(); $user = $facebook->require_login(); ?> <fb:swf swfsrc = "http://www.path.to/yourswf" /> PHP: Put the index.php in the folder you created. Upload everything. Go back to your app in the facebook developer area and set the callback url to the folder that you uploaded including a trailing slash: http://www.mywebsite.com/facebookapp/ (example) Set the canvas page url to whatever you want. Set 'can users add this to their facebook account' to yes Set the post add url to the same as the callback url. There you have it, a basic facebook app for showing SWFS. If you want to put the swf in the profile instead of just showing it: index.php <? // the facebook client library include_once 'client/facebook.php'; $api_key = ""; $secret = ""; $facebook = new Facebook($api_key, $secret); $facebook->require_frame(); $user = $facebook->require_login(); ?> <fb:swf swfsrc = "http://www.path.to/yourswf" /> $fbml = <<<EndHereDoc <fb:swf swfsrc = "http://www.path.to/yourswf" imgsrc="http://www.path.to/aloadingimage.jpg"/> EndHereDoc; $facebook->api_client->profile_setFBML($fbml, $user); PHP:
I've had quite a few facebook dev articles bookmarked for a while now. Not got round to reading them yet. Let me know if they're any good http://facebook-developer.net/2007/10/18/building-your-first-facebook-application-with-cakephp/ http://www.digital-web.com/articles/building_facebook_applications/ http://www.amazon.com/gp/browse.html?node=391557011
Its REALLY easy using ASP.NET and Visual Web Developer (With PopFly) .. Look at these http://www.microsoft.com/express/samples/facebook/Default.aspx http://video.msn.com/video.aspx?mkt=en-gb&tab=soapbox&vid=5a2b8ffc-31a1-4041-97d0-44461f1fd764