2
votes

I am trying to delete an application tab from a facebook page.

According to the documentation, I should issue a DELETE request to "https://graph.facebook.com/PAGE_ID/tabs/app_ID" with a "manage_pages" access token, but when I do so I get the error "(#210) Subject must be a page."

I have requested the user for "manage_pages" permission and I have the correct access_token (GET Method works perfectly to show all the details).

The exact request is: https://graph.facebook.com/270936169730418/tabs/app_533644953422033 (with an access token)

Does anyone know what am I doing wrong??

P.S I am using JS SDK and also trying to do this in the graph api explorer but results are the same.

1
I would file a bug at developers.facebook.com/bugsWizKid

1 Answers

7
votes

The problem is with the access token. When using the Graph API Explorer (and checking "manage_pages") you might think that the access token showing at the top is a page access token. It is not.

You need to do GET /me/accounts Then find the page you want and there is an access_token. Copy this and paste it into the Access Token input field at the top. Now do the DELETE [PAGE_ID]/apps_[APP_ID] and it will work.