Facebook Invite Friends

Ranked #1,381 in Internet, #80,239 overall

How to make Facebook Invite Friends feature

Facebook Invite Friends is a crucial feature required for any Facebook application. It is also the oldest one, yet it is still one of the most used features required for any Facebook Application. However, making the Facebook Invite Friends is not an easy task. It requires knowledge about XFMBL and how to initialize it. Since there are no IDE for XFBML it is extremely error prone and one single character in the wrong place could result in not showing the Facebook Invite Friends control and loosing many hours of time trying to figure out what is going wrong. This article presents two professional implementations of Facebook Invite Friends feature: one for PHP programming language and one for ASP.NET. Both implementations keeps code clean and easy to maintain since it is enough to use pure PHP class or ASP.NET control for creating this feature.

Facebook Invite Friends PHP Example

This example shows how to include default Facebook Invite Friends feature in just 4 lines of PHP code. It is enough to create class set 2 mandatory parameters and render the class on the page. All other parameters are optional and are set on default values:

$fbInvite1 = new InviteFriends();
$fbInvite1->SetMainTitle("Main title");
$fbInvite1->SetContent("This is Facebook invite friends content.");
$fbInvite1->Render();

PHP resources

This link list contains links on the PHP implementation of Facebook Invite Friends feature and link to Facebook Connect PHP Toolkit as library where the class is located.
Facebook Invite Friends PHP Class
PHP Implementation of Facebook Invite Friends feature
Facebook Connect PHP Toolkit
PHP library which contains 10 the most used facebook features used for Facebook Connect web sites and Facebook iFrame applications

Facebook Invite Friends ASP.NET Example

This example show how to include Facebook Invite Friends in ASP.NET web site including a simple ASP.NET control:

<fvk:invite ID="invite1" runat="server"
  ActionUrl = "http://apps.Facebook.com/yourapp/";
  Content = "This is content of invite request";
  ConfirmButtonTitle = "Accept";
  SendButtonTitle = "App name";
  MainTitle = "Invite your friends to use this application";
/>

ASP.NET Resources

This link list contains link of Facebook Invite Friends ASP.NET control and links to Facebook ASP.NET Control libraris
Facebook Invite Friends ASP.NET Control
ASP.NET implementation of Facebook iFrame feature in C# and VB.NET
Facebook iFrame ASP.NET controls
This library contains list of ASP.NET controls used for Facebook iFrame applications
Facebook Connect ASP.NET controls
This library contains a list of ASP.NET controls used for Facebook Connect web sites

Featured Lenses

Loading

Donations

Hero Dogs is a non-profit organization dedicated to providing service dogs to veterans of the USArmed Forces who have become injured or disabled in service to our nation.

Guestbook

by

vatlab

Vatlab.com offers Facebook application development in .NET framework (C# and VB.NET) and an option to buy scripts of existing applications, ASP.NET co... more »

Feeling creative? Create a Lens!