Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3440222
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:24:24+00:00 2026-05-18T08:24:24+00:00

When I use serverfbml tag to render facebook multi friend input inside an iframe

  • 0

When I use serverfbml tag to render facebook multi friend input inside an iframe app, it creates another iframe in which the widget is loaded. So, I am not able to obtain the user entered user id’s from javascript or php?

Can someone how me a way to get this id’s?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:24:24+00:00Added an answer on May 18, 2026 at 8:24 am

    Here is my invite.php that works for me:

    <?php
    
    require_once "iframe-header.php";
    
    if( !$fb_userid ) {
        $api->require_frame();
    }
    
    $invite_href = $serverurl.'invite.php?'.$parms; // Rename this as needed 
    
    
    if(isset($_REQUEST["ids"])) { 
    
        echo '<center>Thank you for inviting '.sizeof($_REQUEST["ids"]).' of your friends on <b><a href="'.$appurl.'?'.$parms.'" target="canvas_iframe">'.$app_name.'</a></b>.<br/><br/>';
        echo '<h2><a href="'.$appurl.'?'.$parms.'" target="canvas_iframe">Click here to return to '.$app_name.'</a>.</h2></center>';
    
    } else if( $fb_userid ) {
    
        // Retrieve array of friends who've already authorized the app. 
        $fql = 'SELECT uid FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1='.$fb_userid.') AND is_app_user = 1'; 
    
        $_friends = $api->api_client->fql_query($fql); 
    
        // Extract the user ID's returned in the FQL request into a new array. 
        $friends = array(); 
        if (is_array($_friends) && count($_friends)) { 
    
            foreach ($_friends as $friend) { 
                $friends[] = $friend['uid']; 
            } 
    
        } 
    
        // Convert the array of friends into a comma-delimeted string. 
        $friends = implode(',', $friends); 
    
        // Prepare the invitation text that all invited users will receive. 
        $content = '<fb:name uid="'.$fb_userid.'" firstnameonly="true" shownetwork="false" /> has started using <a href="'.$appurl.'">'.$app_name.'</a> and thought it&apos;s so cool even you should try it out! <fb:req-choice url="'.$api->get_add_url().'" label="Put '.$app_name.' on your profile" />';
    
        echo '<fb:serverFbml style="width: 755px;"><script type="text/fbml"><fb:fbml><fb:request-form action="'.$invite_href.'" method="get" type="'.$app_name.'" content="'.htmlentities($content,ENT_COMPAT,'UTF-8').'">'; 
        echo '  <fb:multi-friend-selector actiontext="Here are your friends who don&apos;t have '.$app_name.' yet.  Invite whoever you want -it&apos;s free!" exclude_ids="'.$friends.'" />'; 
        echo '</fb:request-form></fb:fbml></script></fb:serverFbml>';
    
    } 
    
    require_once "iframe-footer.php";
    

    ?>

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to place the Facebook multi-friend-selector in a Facebox (don't want to use
I have a PHP application running in iFrame mode. I am rendering an <fb:multi-friend-selector
use this website a lot but first time posting. My program creates a number
Use case: User launches app The user enters google password The app lets the
Use the static modifier to declare a static member, which belongs to the type
Use default: <input type=radio name=restype value=resdef onfocus=document.getElementById('resupload').disabled = true; document.getElementById('resadres').disabled = true; checked=checked /><br
use PHP and MySQL and want to use SELECT statement which date_post(datetime variable) start
i used to use <fb:serverfbml> and to parse it FB.XFBML.parse() . when i switched
I have a page in my website to invite Facebook friends to use my
The fbml below generates an invite form using a multi-friend-selector. Everything works, except the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.