Read more

Using the Facebook Graph API

Dominik Schöler
September 16, 2014Software engineer at makandra GmbH

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
Illustration online protection

Rails professionals since 2007

Our laser focus on a single technology has made us a leader in this space. Need help?

  • We build a solid first version of your product
  • We train your development team
  • We rescue your project in trouble
Read more Show archive.org snapshot

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

Posted by Dominik Schöler to makandra dev (2014-09-16 10:55)