Reference Guide
facebook FBML Reference Guide Page 94 of 159
// Build an delimited list of users...
if ($rs)
{
for ( $i = 0; $i < count($rs); $i++ )
{
if ( $arFriends != "" )
$arFriends .= ",";
$arFriends .= $rs[$i]["uid"];
}
}
// Construct a next url for referrals
$sNextUrl = urlencode("&refuid=".$user);
// Build your invite text
$invfbml = <<<FBML
You've been invited to join the PickPocket™ Guild!
<fb:name uid="$user" firstnameonly="true" shownetwork="false"/> wants you to add PickPocket™ so that you
can join <fb:pronoun possessive="true" uid="$user"/> wily band of thieves!
<fb:req-choice url="http://www.facebook.com/add.php?api_key=$appapikey&next=$sNextUrl" label="Join the
Guild!" />
FBML;
?>
<fb:request-form type="PickPocket" action="index.php?c=skipped" content="<?=htmlentities($invfbml)?>"
invite="true">
<fb:multi-friend-selector max="20" actiontext="Here are your friends who don't have PickPocket™.
Invite them to play with you!" showborder="true" rows="5" exclude_ids="<?=$arFriends?>">
</fb:request-form>
www.yapish.com










