开发者

Which Facebook APIs can be used to programatically post a message?

开发者 https://www.devze.com 2023-01-04 20:17 出处:网络
I have an application that allows a user to post messages. I\'d like to give an option to users to propagate the same posts on their Facebook wall / status. Which Facebook APIs can I leverage, includi

I have an application that allows a user to post messages. I'd like to give an option to users to propagate the same posts on their Facebook wall / status. Which Facebook APIs can I leverage, including the ones that are need to authentica开发者_如何学Pythonte the user?


You can use Facebook's JS API (useful for client-side), the new Graph API, or the old REST API. Facebook has extensive documentation at http://developers.facebook.com/docs/


The easiest path is probably to use the Facebook.streamPublish() function through the FBJS API.

You can also use streamPublish() through direct Facebook API calls, but you need extended permissions. Using FBJS, Facebook will display their own prompt to the user, so you do not need extended permissions.

0

精彩评论

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

关注公众号