1

I'm building an application that needs to query and fetch the Facebook public feed every hour or so. I only need read access to the public feed. I can make the query using the Access Token generated on the Graph Explorer page but that token expires after an hour or so. I know there is a way to get a 60 days token and use that, but that requires updating the token every 60 days.

Whats the correct way of doing this? All the material I have found so far assumes a front end application that needs a user's login authentication.

shane
  • 2,071
  • 3
  • 15
  • 16

1 Answers1

0

You can't get offline access token for facebook (unlike google).

You can get access token for 60 days, and when user asks for page that requires authentication, redirect him to login page.

In playframework you can do this with securesocial module (and i am sure there is social module for whatever server you choose to use).

Alternatively, you can extend the short-lived access token.

I am unsure of the technical details of how to do this, only that it is possible. Maybe this link can help you: Facebook full permission AccessToken alternative to Offline access token

Community
  • 1
  • 1