Using the Facebook Graph API

App tokens

For server-to-server requests to the Facebook Graph API you can skip requesting an Oauth token, an instead use the combination of app_id|app_secret as your access token. This token will never expire, and should suffice for retrieving basic information from the Graph API.

http://graph.facebook.com/endpoint?key=value&access_token=app_id|app_secret

Since you don't make requests for a certain user, the Graph API might respond with an error in case you're requesting a resource that requires authenticating as a human being.

Pagination

Facebook has quite a powerful pagination, which unfortunately is not too obvious. Read more Show archive.org snapshot .

Time-based pagination

Parameter: until, since, limit, next, previous

Dominik Schöler Over 9 years ago