Delete a comment by Graph API from fb:comments posted by an user? Yes, again
Because a moderator has deleted the same point on the same topic, i open a new questi开发者_如何学Con (yes, is stupid to do it, but i don't make the rules)
I have a comment box with fb:comments, but the new api doesn't have a way to delete a comment, so, is it possible with Graph api? Scraly, was posted on the same topic that is a way to do that, but i want to know how to do it.
I hope that this time this message will not be deleted, because there is no reason again to do that.
Yes, you can use the Graph API for this:
if the comment has the id 1234567 you can delete the comment by issueing a delete request:
https://graph.facebook.com/1234567?method=delete&access_token=...
Hope this helps.
as ingah-h said before you can delete a comment by it's id using the following endpoint:
https://graph.facebook.com/v2.8/{comment-id}?method=delete
and be aware to pass your page access token with the request as a header
Authorization: "OAuth EAADhsxfbE8sBAG02xoKNH1nMt....."
精彩评论