1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need a help for suggest friends Code to work in iframe

Discussion in 'FaceBook' started by Mickam, Jun 19, 2012.

  1. Mickam

    Mickam Newbie

    Joined:
    Feb 1, 2012
    Messages:
    22
    Likes Received:
    0
    Hello,

    I have this code that make suggest friends work in iframe ,

    Code:
               [LEFT]<html>[/LEFT]
        [LEFT]    <head>
    [/LEFT]
        [LEFT]    <title>My Great Website</title>[/LEFT]
        [LEFT]    </head>
    [/LEFT]
        [LEFT]    <body>[/LEFT]
        [LEFT]      <div id="fb-root"></div>[/LEFT]
        [LEFT]      <script src="http :// connect.facebook .net/en_US/all.js">
    [/LEFT]
        [LEFT]      </script>
    [/LEFT]
        [LEFT]      <script>[/LEFT]
        [LEFT]         FB.init({ [/LEFT]
        [LEFT]            appId:'245347155576372', cookie:true, 
    [/LEFT]
        [LEFT]            status:true, xfbml:true [/LEFT]
        [LEFT]         });[/LEFT]
        [LEFT]        FB.ui({[/LEFT]
        [LEFT]   method: 'apprequests',
    [/LEFT]
        [LEFT]   display: 'iframe',[/LEFT]
        [LEFT]   message: 'Your message',[/LEFT]
        [LEFT]   title: 'Your title'[/LEFT]
        [LEFT]}, function(response) {[/LEFT]
        [LEFT]   alert(response.request_ids);[/LEFT]
        [LEFT]});[/LEFT]
        [LEFT]      </script>[/LEFT]
        [LEFT]     </body>[/LEFT]
        [LEFT] </html>
    [/LEFT]
    
    I need it to work such as this facebook .com/dialog/apprequests?app_id=APP_ID&redirect_uri=URL_GIVEN_IN_APP/&message=abc
    but this working popup and I want it to work iframe , sorry for my english
    * no spaces in the urls
    Thnx