简体   繁体   中英

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.

So the like would appear on the Pages wall with "user xzy likes this"

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.

  1. http://developers.facebook.com/docs/reference/javascript/ you will need JS-SDK first.

  2. http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/ you will next need to subscribe to any like events on your page.

  3. http://developers.facebook.com/docs/reference/dialogs/ you can use the feed dialog to generate the post to page.

NOTE: to post to a page you will need a page access token appended to the post request.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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