-1

如何刪除未由您的應用程序發佈的Facebook帖子?如何以編程方式刪除尚未由您的應用程序發佈的Facebook發佈?

  1. 使用圖形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, 
    } 
} 
  • 抑或存在一些其他的方法?
  • +1

    在什麼條件下您的應用_can_刪除帖子,在這裏描述:https://developers.facebook.com/docs/graph-api/reference/v2.9/post#deleting – CBroe

    +0

    有一個應用程序(Xpire)其中能夠刪除它甚至沒有發佈的fb文章。鏈接: - https://itunes.apple.com/us/app/xpire-mass-delete-your-tweets-and-facebook-posts/id782634899?mt=8 – maveroid

    +1

    那麼他們可能不會使用API​​ ... – CBroe

    回答

    1

    按照Graph API reference

    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.

    所以這取決於你在做什麼。

    +0

    有一個應用程序(Xpire)能夠刪除它甚至沒有發佈的fb文章。鏈接: - https://itunes.apple.com/us/app/xpire-mass-delete-your-tweets-and-facebook-posts/id782634899?mt=8 – maveroid

    +1

    也許他們不使用API​​並繼續工作Facebook網站。但是如果沒有逆向工程,我只能在黑暗中徘徊。 – Norbert

    相關問題