开发者

Can I post a comment on a status programmatically?

I've been reading up on the new documentation, and I've found out how to post a status as a user, and how to read a status and all it's comments, but I haven't found a way yet to post a comment. My goal is to have the backend of my appl开发者_高级运维ication mirror exactly the interaction on Facebook, such that if a user (whose access token we have) comments on a post in our iOS app's custom UI, our server can update the mirrored post on Facebook by adding the comment as that user. It's sounds like it's possible from what I've read, but I can't figure out exactly how to do it from the documentation. Can someone explain more clearly how to post comments, and what access privileges I need to do so?


You need to have publish_stream permissions from the user and then you just issue an HTTP POST to https://graph.facebook.com/postID/comments?access_token=... with a "message" post parameter equal to the comment you want to post. Its documented here under the section titled "comments".

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜