Simple, imagine I am posting a wall post or an event on a random Facebook Page from a PHP script, and I want to delete the item. I simply use this :
$facebook->api('/'.FacebookId,'DELETE');
Of course, the FacebookId is structured like : userid_postid
But that doesn’t work. To see why, I simply go to this URL :
https://graph.facebook.com/” + postID + “?method=delete&access_token=” + AccessToken;
Here is the result :
{
"error": {
"message": "(#200) Permissions error",
"type": "OAuthException",
"code": 200
}
}
By lurking around stackoverflow, I found this bug : http://bugs.developers.facebook.net/show_bug.cgi?id=12777
It is still not resolved.
So if anyone knows how to get this permission, I would appreciate your help.
According to the documentation:
Is this the case? Has your app created the post? does it have the “publish_stream” permissions?
I just tried it using the graph explorer, I created a post by POSTing to the me/feed, got back an id (USERID_POSTID) and then issues a DELETE request to the id, and it worked well (the returned response was “true”).