Reputation: 143
I am trying to get get the /home endpoint for a fan page using the Facebook API, but it returns this error:
Array ( [message] => You can only access the "home" connection for the current user. [type] => GraphMethodException [code] => 100 )
I tried using:
None of them work, returning the same error every time.
NOTE: it works fine if I try to get the /home of the parent account and using its AuthToken.
Any ideas?
Thanks!
Upvotes: 2
Views: 111
Reputation: 31479
You need to use the
GET /{page_id}/feed
endpoint (https://developers.facebook.com/docs/graph-api/reference/v2.0/page/feed/).
There's no /{page_id}/home
for pages, see https://developers.facebook.com/docs/graph-api/reference/v2.0/page/#edges
Upvotes: 4