0

is it possible to create a Facebook Access-Token which lasts for ever?

Actually mine ends after 2 hours :/

Phil
  • 646
  • 1
  • 8
  • 23

2 Answers2

2

No, "offline_access" has been deprecated/removed (https://developers.facebook.com/roadmap/offline-access-removal/).

You can only get a long living token which lasts for about 60 days. The easiest way is to use the PHP SDK, there is a function called "setExtendedAccessToken" to achieve this.

Also, see those threads:

Community
  • 1
  • 1
andyrandy
  • 72,880
  • 8
  • 113
  • 130
0

It depends for what you want to do with the Acess Token.

If you want an acess token to access an user data. You can use the "setExtendedAccessToken" method, how the luschn said in his answer.

But, if you want an acess token to access some public information, like an a feed from a public group, or a page. So you can uses an App Access Token. Which you gets here https://developers.facebook.com/tools/access_token/

João Mosmann
  • 2,884
  • 19
  • 25