K!

by Karl Bunyan

Programming, PHP, JavaScript, .Net, motorbikes, pubs, poker, football, news, restaurants and anything else

Facebook
http://twitter.com/karlbunyan

Thursday, September 06, 2007

Facebook's new 'Invite friends' tag

Everyone's been either copying and pasting or writing from scratch some code to add "Invite friends" to their Facebook apps, but now there's a simple tag that they've provided. It's currently in beta and, knowing Facebook, is bound to change and break everything a few times, but it's very easy to use:

<fb:request-form action="invite.php"
method="post" type="trust" content="Invite
friends to trust you<fb:req-choice
url='http://apps.facebook.com/i_trust'
label='Add iTrust' />"
image="http://apps.exponetic.com/itrust/
_img/iTrust-logo-magenta-small.gif">
  <fb:multi-friend-selector
actiontext="Select friends" />
 </fb:request-form>

(Note the slightly dodgy <fb:req-choice> tag inside the content attribute.)

We're now using it at Exponetic on our second Facebook application, called iTrust.

Exponetic, Facebook developers in London

iTrust

Six degrees of separation

Link to this post

Comments:

Hello



Just to tell you that this is the first Facebook Invite code I've seen that's actually working!



Thank you



S. Ali Tokmen

http://ali.tokmen.com/

posted by Anonymous S. Ali Tokmen : August 14, 2008 4:49 PM

It's not working for me. Do you need some other code to process the form? This is supposed to be able to invite friends to you app, right?

posted by Anonymous Anonymous : September 18, 2008 1:53 AM

Post a Comment

Recent posts in the Programming category

Archive

Other links

Change the background image