Reputation: 982
During the past couple of weeks I've been sporadically downloading posts from a couple of Facebook pages with this call:
https://graph.facebook.com/105317422843784/posts
Everything was working fine and I would get the usual json response of public posts (which doesn't require authentication afaik).
Now I get this:
{ "error": { "message": "An access token is required to request this resource.", "type": "OAuthException", "code": 104 } }
I haven't changed anything in my code, and I tested in two different browsers and two different machines with the same result. I don't think I've hit any limits (I'm using the API very seldom). I can't find any changes made to the API either.
Is anybody else having trouble with this? Can anybody point me to a lead?
Upvotes: 2
Views: 3714
Reputation: 1
Facebook is going through an entire change with their recent conflicts and allegations. They have stopped all API pulling for now and the access will be given again once all your Facebook Developer apps are reviewed by them.
Upvotes: 0
Reputation: 34
From today, in order to get posts from public pages through Facebook Graph, we always need to use Access Tokens.
New Permissions
- An access token is required to view publicly shared posts.
- A user access token is required to retrieve posts visible to that person.
- A page access token is required to retrieve any other posts.
Old Permissions
- An app or user access token is needed to view fields from fully public pages.
- A user access token is needed to view fields from restricted pages that this person is able to view (such as those restrict to certain demographics like location or age, or those only viewable by Page admins).
- A page access token can also be used to view those restricted fields.
Upvotes: 1
Reputation: 1570
Taken from the documentation on: https://developers.facebook.com/docs/graph-api/reference/v2.2/page/feed/
An access token is required to view publicly shared posts.
A user access token is required to retrieve posts visible to that person.
A page access token is required to retrieve any other posts.
Looks like you need an access token.
Upvotes: 3