1
votes

We are facing issues with Graph API. The Facebook Graph API "/{page-id}/feed" is not working for all pages with a valid App Access Token. Previously it used to work. We noticed it today the API is throwing error


{ "error": { "message": "An unknown error has occurred.", "type": "OAuthException", "code": 1 } }


Not working pages:

https://graph.facebook.com/22934684677/feed?access_token= https://graph.facebook.com/42798291365/feed?access_token=

Note: And its working if we pass a User Access token instead of App Token.

Facebook developer Docs says "An access token is required to view publicly shared posts." So App Access Token should work!

Does Facebook change something inside the API?. Can any one help to solve the issue

2
And you know that those two pages have no restrictions at all?WizKid
I can retrieve the photos,videos etc. It was working till last week.I just noticed its not working for some of the pages. Is there any way we can find the pages have any restrictions?Lijo John
No there is no way to know which pages have restrictions. I would suggest filing a bug at developers.facebook.com/bugsWizKid
I'm voting to close this question because all the IDs contained in it I have been able to successfully call with an app token. In addition, any questions that deal with a bug in the API should be filed with developers.facebook.com/bugs. The only correct answer on Stack Overflow will be file a bugphwd
We're having the same issue where I work. It seems someone has posted a bug report for this: developers.facebook.com/bugs/783169051760311paul

2 Answers

3
votes

You should use a Page Token for Page data. Pages not working with an App Token are most likely restricted by age or location. Since the App Token does not include any user session, you can´t be sure if the user should have access to it.

If it does not work with an App Token AND the Page is definitely not restricted, file a bug.

2
votes

This is happening because some of the posts returned might have extra restrictions on them which need a user token to verify this. Use a page token or a user token as a workaround for this. Having said that, the request shouldn't fail with an unknown error and we're working on a fix for the same on the bug report here: https://developers.facebook.com/bugs/783169051760311/