简体   繁体   English

发布到用户facebook墙和Pages墙

[英]Post to a users facebook wall and to a Pages wall

I'm looking to have a "like" button on my site that when pressed will post to the users Facebook wall and also to a Facebook pages wall. 我希望在我的网站上有一个“喜欢”按钮,当按下该按钮时,它会发布到用户Facebook墙以及Facebook页面墙。

So the like would appear on the Pages wall with "user xzy likes this" 因此,“用户xzy喜欢”会在“页面”墙上显示类似的内容

Anybody know how I can implement this? 有人知道我该如何实现吗?

thanks 谢谢

You can react to a like event by subscribing to the like button, but this will only post to a session users wall, in the react you can however compose a new post that can be posted by user to page wall. 您可以通过订阅“赞”按钮来对“赞”事件做出反应,但这只会发布到会话用户墙上,但是您可以在“ react”中撰写一个可以由用户发布到页面墙上的新帖子。

  1. http://developers.facebook.com/docs/reference/javascript/ you will need JS-SDK first. http://developers.facebook.com/docs/reference/javascript/您将首先需要JS-SDK。

  2. http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/ you will next need to subscribe to any like events on your page. http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/,您接下来需要在页面上订阅任何类似的事件。

  3. http://developers.facebook.com/docs/reference/dialogs/ you can use the feed dialog to generate the post to page. 您可以使用Feed对话框http://developers.facebook.com/docs/reference/dialogs/生成文章到页面。

NOTE: to post to a page you will need a page access token appended to the post request. 注意:要发布到页面,您需要在访问请求后附加页面访问令牌。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM