开发者

allowing people to send invitations for a website to their friends

I would like to allow users on my web开发者_开发百科site to send invitations TO my website to their facebook friends. What is the best way to do this?

Is there a simple snippet of FBML code I can attach to a button on my site? Must the users first be logged into facebook?

In the developers documentation here: http://developers.facebook.com/docs/reference/fbml/req-choice/

It says "Note: You can also send requests and invites through Inbox." What does this mean?

Thanks.


In all honesty, the simplest way is to use Like. Add in the correct Open Graph tags and you will have your website published on their wall. By using Like, if the person isn't logged into Facebook, it handles all of that side of things for you.

EDIT

http://facebook-developer.net/2008/02/20/allow-your-users-to-invite-their-friends/

EDIT

You said you wanted to invite people to your page. Here is the code:

<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js">
</script>
<script>
   FB.init({ 
      appId:'YOUR_APP_ID', cookie:true, 
      status:true, xfbml:true 
   });

   FB.ui({ method: 'apprequests', 
      message: 'Here is a new Requests dialog...'});
</script>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜