php - Using Facebook Graph API without User Access Token -
what want achieve
i want display posts of public facebook page on website. reason not make sense use user access token, since requires login.
possible solution found
i know can use app tokens. there related question on stackoverflow. tested using graph api explorer.
https://graph.facebook.com/v2.3/google/statuses
returns: (#100) requires user session
https://graph.facebook.com/v2.3/google/posts
returns: valid result, totally different result same request user access token (less posts). same request nike delivers better result.
questions
- why same request deliver 2 diferent results?
- can grab posts app token?
- under conditions can full timeline without user access token?
it's in docs. there's fundamental difference between posts
, statuses
, , permission requirements documented:
- https://developers.facebook.com/docs/graph-api/reference/v2.3/page/feed#readperms
- https://developers.facebook.com/docs/graph-api/reference/v2.3/status *
quotes:
- an access token required view publicly shared posts.
- a user access token required retrieve posts visible person.
- a page access token required retrieve other posts.
Comments
Post a Comment