Facebook App

Discussion in 'PHP' started by codimes, Mar 15, 2009.

  1. #1
    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
     
    codimes, Mar 15, 2009 IP
  2. GLD

    GLD Well-Known Member

    Messages:
    307
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    140
    #2
    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.
     
    GLD, Mar 16, 2009 IP
  3. elbeer

    elbeer Active Member

    Messages:
    619
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    70
    #3
    I have a script that does just this on facebookoriginal.com check out the links on the bottom left of the page
     
    elbeer, Mar 17, 2009 IP
  4. elbeer

    elbeer Active Member

    Messages:
    619
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    70
    #4
    Did you check it out
     
    elbeer, Mar 17, 2009 IP