Hi guys,

Today I am going to share some interesting news.  Now a days everyone having a website but they dont know how to market it. I am going to share how to send a invitation about your website to your facebook friends.

It will pull your friends to your website 🙂

Step 1 : you have to create a application in facebook  – https://developers.facebook.com/apps

Step 2: After creating facebook application – get your facebook app id

Step 3 :

Insert this  sdk before head tag

<script src="http://connect.facebook.net/en_US/all.js"></script>

Step 4 :

Insert this javascript code in your web page

FB.init({
 appId:'your app id', cookie:true, status:true, xfbml:true
 });
function FacebookInviteFriends()
{
FB.ui({ method: 'send',name: 'Complete Web Tutorials - PHP, Mysql, Ajax, Jquery, HTML, CSS, facebook, twitter',link: 'http://w3lessons.info', description: 'your website description', picture: 'http://w3lessons.info/demo/web2.0.jpg'});
}

Step 5:
call the facebookinvitefriends function via this link

<a href="#" onclick="FacebookInviteFriends();">Bring Your Friends</a>

thats it man.. you are done!!
Finally Message will appear in your friends inbox like this

I hope this tutorial will help you understand better..

your comments are always welcome..

Please don’t forget to share and subscribe to latest updates of the blog.

Thanks!

[button type=”anchor” url=”http://w3lessons.info/demo/invite-facebook-friends/” color=”blue” align=”after”]View Demo[/button] [button type=”download” url=”https://www.box.com/s/i4zq6f4uq4ep95e8zgt9″ color=”orange” align=”after”]Download[/button] https://w3lessons.info/wp-content/uploads/2012/10/send_message_db11.pnghttps://w3lessons.info/wp-content/uploads/2012/10/send_message_db11-150x150.pngkarthikeyanfacebookFreebiesAPI,facebook,facebook application,freebies,tips & tricksHi guys,Today I am going to share some interesting news.  Now a days everyone having a website but they dont know how to market it. I am going to share how to send a invitation about your website to your facebook friends.It will pull your friends to your website...PHP, HTML5, CSS, jQuery, Angular, Facebook Style Scripts & demos

Related Posts