Facebook Friends Invitation Script : Facebook API

Facebook is growing daily,now they have 100 million users above,so implementing facebook invitation scripts will help you to get more visitors to your blog ow website,Creating that is very easy

Step 1) : Create a Facebook App from here

Step 2) : Copy the below code and replace APP_ID with your app id and use the code every where you want to display the invitation link


<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
<b>FB</b>.init({
appId:'APP_ID',
cookie:true,
status:true,
xfbml:true
});

<b>function</b> FacebookInviteFriends()
{
<b>FB</b>.ui({
method: 'apprequests',
message: 'Your Message diaolog'
});
}
</script>

//HTML Code
<div id="fb-root"></div>
<a href='#' onclick="FacebookInviteFriends();">
Facebook Invite Friends Link
</a>