Mausam Sinha
Mausam Sinha

Reputation: 21

Error deleting Facebook post: OAuthExceptionMessage: (#200) This post wasn't created by the application

I have a Facebook App and a Facebook place page.

I have linked the App to the page using http://www.facebook.com/add.php?api_key=251531424968346&pages=1&page=108505012565098

I can make post from a user with location as my Facebook place. I want to delete these posts programmatically using Facebook SDK DELETE method. The code to delete is

function deletepost(responseid){
        FB.api('/'+responseid, 'delete',
         function(response){
            if (response.error)
            {
            alert(response.error.message);
      });
  }

I tried setting resposeid as _ and

With this, i get an error "(#200) This post wasn't created by the application"

It is true that the post wasn't created by the application but being an owner of the page (and the app), can i not delete any post made on the page in any way?

Upvotes: 2

Views: 1498

Answers (1)

Igy
Igy

Reputation: 43816

You can only delete posts

  • Posted by your app, using the app access token or user access token from the user that posted them
  • On the timeline of a page you're administering, using the Page access token for that page.

It sounds like you're not doing either of those - the error message is likely correct

Upvotes: 0

Related Questions