Spectragram.js - Error: Error validating access token: Session has expired
rvalitov opened this issue · 2 comments
Hello! I followed the Wiki and everything worked fine. But after 3-4 months I got the following error:
root_library.js.ef68…8.js?v=ee5271c135:2 Uncaught Error: Spectragram.js - Error: Error validating access token: Session has expired on Tuesday, 25-Aug-20 04:09:15 PDT. The current time is Thursday, 27-Aug-20 00:39:54 PDT.
at Function.error (root_library.js.ef68…8.js?v=ee5271c135:2)
at Object.<anonymous> (spectragram.min.js:1)
at i (root_library.js.ef68…8.js?v=ee5271c135:2)
at Object.fireWith [as resolveWith] (root_library.js.ef68…8.js?v=ee5271c135:2)
at z (root_library.js.ef68…8.js?v=ee5271c135:2)
at HTMLScriptElement.c (root_library.js.ef68…8.js?v=ee5271c135:2)
at HTMLScriptElement.dispatch (root_library.js.ef68…8.js?v=ee5271c135:2)
at HTMLScriptElement.r.handle (root_library.js.ef68…8.js?v=ee5271c135:2)
And the plugin stopped showing any photos. Do you know how to handle this situation and how to avoid access token to be expired?
P.S. Related issue #67
Hi @rvalitov
There's nothing I can do on this side, please go to your FB developer account and renovate the token.
Sorry for the late response.
Maybe you want to try this project, it has more options and doesn't require setting tokens or deal with the FB API.
I think the problem here is that long living tokens actually live only for 60 days. And this vital information is not specified here in README or Wiki. And the tokens must be refreshed periodically. I recommend to add this info and may be links to other projects that assist in regenerating the tokens such as https://github.com/companionstudio/instagram-token-agent