How to invite facebook friends from website?

by barkkathulla 2013-10-25 18:57:00

Simple method to allow users to invite their facebook friends from website



<html xmlns:fb="http://www.facebook.com/2008/fbml">
<body>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<div id="fb-root" onclick="inviteFriends();">Invite your friends from facebook</div>
<script>
function inviteFriends(){
FB.init({appId: 'Your App ID', xfbml: true, cookie: true});

FB.ui({
method: 'send',
name: 'Your title',
link: 'http://www.yoursitename.com',
});
}
</script>
</body>
</html>


In this script,users can invite their friends with custom message....




803
like
0
dislike
0
mail
flag

You must LOGIN to add comments