如何以编程方式删除尚未由您的应用程序发布的Facebook发布?
问题描述:
如何删除未由您的应用程序发布的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,
}
}
- 抑或存在一些其他的方法?
答
An app can delete any post it published, or a page-management app can delete a Post published to a Page that the app manages.
所以这取决于你在做什么。
在什么条件下您的应用_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