开发者

Deleting like from a post on facebook with graph api

开发者 https://www.devze.com 2023-03-25 02:27 出处:网络
I\'m trying to remove a like from a post on facebook using graph api. Like facebook\'s docs said i do this by requesting POST_ID/likes through HTTP DELETE verb. But 开发者_高级运维neither a post on my

I'm trying to remove a like from a post on facebook using graph api. Like facebook's docs said i do this by requesting POST_ID/likes through HTTP DELETE verb. But 开发者_高级运维neither a post on my wall nor another pages' wall couldn't be deleted with this request.

When i try it with graph api explorer i see an error like despite i have the permission through an access token;

{
  error: {
    type: "OAuthException",
    message: "(#200) Permissions error",
  }
}

Could be there an error on facebook graph api with the DELETE operation?


As the error message says, you need a permission to do this which is the publish_stream permission.

More about this can be found here.

0

精彩评论

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