如何刪除未由您的應用程序發佈的Facebook帖子?如何以編程方式刪除尚未由您的應用程序發佈的Facebook發佈?
- 使用圖形API - 根據文檔
/*使API調用*/
new GraphRequest( AccessToken.getCurrentAccessToken(), "/{post-id}", null, HttpMethod.DELETE, new GraphRequest.Callback() { public void onCompleted(GraphResponse response) { /* handle the result */ } }).executeAsync();
上面的代碼是不工作。
這是給錯誤: -
{
"error": {
"message": "(#200) This post wasn't created by the application",
"type": "OAuthException",
"code": 200,
}
}
- 抑或存在一些其他的方法?
在什麼條件下您的應用_can_刪除帖子,在這裏描述:https://developers.facebook.com/docs/graph-api/reference/v2.9/post#deleting – CBroe
有一個應用程序(Xpire)其中能夠刪除它甚至沒有發佈的fb文章。鏈接: - https://itunes.apple.com/us/app/xpire-mass-delete-your-tweets-and-facebook-posts/id782634899?mt=8 – maveroid
那麼他們可能不會使用API ... – CBroe