Using the Facebook Graph API

Updated . Posted . Visible to the public.

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
Last edit
Dominik Schöler
License
Source code in this card is licensed under the MIT License.
Posted by Dominik Schöler to makandra dev (2014-09-16 08:55)