Вот FBML для создания селектора нескольких друзей и javascript для визуализации XFBML (FB JS SDK автоматически анализирует / отображает элементы fbml) ...
<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>