oauth 2.0 - How to handle social networks token expiration? -
i'm writing mini script (web page) similar buffer.com or sproutsocial.com schedule posts social networks such facebook. issue these services require use of tokens have expiration dates (for facebook max 2 months believe). if users schedule posts 3 months later, tokens expire before posts can published.
i can automatically renew these tokens if , if users visit web page within expiration period. see post here posting facebook on behalf of user: how handle token expiration? , wonder if solution?
i have never been asked buffer , sprout if dont' visit sites after long time wonder if there way them keep these tokens fresh?
there no way auto-refresh tokens facebook api, can user interaction. talking extended user token though, valid 2 months. extended page tokens valid forever.
more information:
Comments
Post a Comment