does anyone can explain how to creat facebook app and just embeding flash[swf] file ? i want to implement an quiz. im using: <?php error_reporting(0); require_once('facebook.php'); $facebook = new Facebook("your API key","your secret key"); $facebook_account = $facebook->require_login(); ?> <div style = "padding:5px"> Hello <fb:name uid="<?php echo $facebook_account; ?>" useyou="false"/>! </div> <div style = "padding:5px"> Play Jamag! </div> <div style = "padding:5px;background-color:black"> <fb:swf swfsrc="http://games.mochiads.com/c/g/jamag/jamag_secure.swf" swfbgcolor="#000000" wmode = "opaque" width="500" height="500" /> </div> <div style = "padding:5px"> SAMPLE </div> PHP: but is now working my exportet quiz have also AC_RunActiveContent.js, how do i integrate ? thnx
You need to enter your API key and Secret into this line: $facebook = new Facebook("your API key","your secret key"); PHP: You get these from the Developer application, in your application settings. Also you will not be able to use a Javascript file in your application, as Facebook only allows the use of FBJS and FBJS2, which are similar but not identical to Javascript.
I have a script that does just this on facebookoriginal.com check out the links on the bottom left of the page