I'm building an app that allows users to administrate their Facebook Fan Pages. This requires the following two Access Tokens:
- A User Access Token
- A Page Access Token
I'm quite familiar with User Access Tokens, but not with Page Access Tokens.
Does anybody know how long the Page Access Token remains valid? All I can find on the Facebook website is this succinct paragraph, which doesn't mention anything about it's expiry.
Can I assume that if I am requesting the User Access Token with the offline_access
permission the Page Access Token will also last indefinitely (unless the user changes their password or manually deauthorises my app)?
I'm asking because I want to know how often I should query the Facebook Graph API and acquire Page Access Tokens. Should I simply request them once when the user registers? Or should I request them one each API Call in the event they continuously change? The latter is obviously more taxing!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…