views:

246

answers:

3

I would like to add facebook multi-friend-selector in my facebook iframe appplication that using PHP.

Can i add it to my application? on anyway?

Thanks!

alt text

A: 

Here is an example

If the link is down then go to http://fbrell.com/examples and select xfbml — fb:server-fbml-multi-friend-selector from the list.

serg
Unfortunately, the link is down.
x3ro
@x3ro I edited the answer
serg
A: 

Here is the FBML to create the multi-friend-selector and the javascript to render the XFBML (the FB JS SDK automatically parses/renders fbml elements)...

<fb:serverfbml>
<script type="text/fbml">
<fb:request-form action="http://yourdomain.com" method="get" invite="true" type="MyPeeps Mahjong" content="Checkout my app <fb:req-choice url='http://apps.facebook.com/myapp to app'> ">
<fb:multi-friend-selector showborder="true"
actiontext="Invite your friends to play this game"
rows="5" cols="5" bypass="cancel"  />
</fb:request-form>
</script>
</fb:serverfbml>

<script type="text/javascript">

FB.init('API_KEY', receiver);

FB_RequireFeatures(["CanvasUtil","Connect","XFBML"], function()
{
    FB.XdComm.Server.init("xd_receiver.htm");
});

FB.ensureInit(function()
{
    FB.XFBML.Host.get_areElementsReady().waitUntilReady(function()
    {
    });
});

</script>
John Himmelman