Monday, 17 March 2008

Facebook application: Invitation page


require_once 'facebook.php';

$appapikey = '1111111111111111111111111';

$appsecret = '111111111111111111111111111';

$facebook = new Facebook($appapikey, $appsecret);

$user = $facebook->require_login();

// Build your invite text

$invfbml = <<<FBML

You have been invited to join YQLM notifier.

<fb:name uid="$user" firstnameonly="true" shownetwork="false"/> wants you to add YQLM googlegroups Notifier. so that you can join

<fb:pronoun possessive="true" uid="$user"/>London YQLM GoogleGroups! <fb:req-choice url="$appapikey" label="Add this application" />



<fb:request-form type="YQLM Notifier" action="./index.php" content="<?=htmlentities($invfbml)?>" invite="true">

<fb:multi-friend-selector max="20" actiontext="Select your friends to add this application!" showborder="true" rows="3">


No comments:

My photo
London, United Kingdom

Facebook & Twitter