0

I'm confused as to whether or not long-access page tokens from Facebook need to be renewed. Apparently Facebook has changed this at least once, and I'm not sure how the system works now. I created a long-access token using the instructions here, which I need for a server-side application which needs to post as a Facebook page. Does this token ever need to be renewed? If so, is it possible to automatically renew it on the server side?

The accepted answer here links to some Facebook documentation that apparently said that Facebook provides page tokens that do not expire, but the link no longer exists.

I'm using the Python Facebook SDK if anyone wants to give me an example of how to renew a token (if needed).

Edit: Apparently to get the page token, you must also ask the graph api for /{pageId}?fields=access_token after following the previous instructions I linked.

Community
  • 1
  • 1
Nathan BeDell
  • 2,263
  • 1
  • 14
  • 25
  • 1
    I would suggest that you read https://developers.facebook.com/docs/facebook-login/access-tokens#extending . But the sort answer is yes access token can expire – WizKid Jun 23 '14 at 22:06
  • On day 61 they expire, so the answer is yes, they must be renewed – Adam Azad Jun 24 '14 at 07:26
  • 1
    If you create a long-lived Page Access Token in v1.0 of the Graph API via the Token exchange mechanism, it will be valid indefinitely. With Graph API v2.0 the maximun you can get is 60 days. – Tobi Jun 24 '14 at 07:27

0 Answers0