开发者

Facebook App Wall Comments

When a user adds a comment to a post on the wall of an App Profile page, the app page owner can click a box and select Remove Comment.

Now开发者_运维问答 Im trying to use graph api to access those comments. so I try curl -X DELETE https://graph.facebook.com/long_comment_ID?access_token=apptoken and I get {"error":{"type":"OAuthException","message":"(#200) The user hasn't authorized the application to perform this action"}}

I don't see how this makes sense.


The app doing the deleting has to have the correct permissions to delete the wall post. As this page describes:

You can delete a post as long as your application created the post. You delete a post by issuing an HTTP DELETE request to the POST_ID object with publish_stream permission.

Your app can get these permissions from either the creator of the post, or an admin of the page, i.e. any user who you would expect to be able to delete the post. Thus, either an admin or the user has to log in to your app and give it the publish_stream permission for it to delete the post.

Note: Facebook fan/app pages are treated differently from personal wall pages: normally apps can't delete a post on a person's wall that was created by a different app. With fan pages this restriction is not present. You do need the publish_stream permission though.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜