Title: Error Validating Access Token
Last modified: September 3, 2020

---

# Error Validating Access Token

 *  Resolved [mpddev](https://wordpress.org/support/users/mpddev/)
 * (@mpddev)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/error-validating-access-token-13/)
 * Hi Support, I have been using this plugin for quite awhile and this issue has
   occur 3 times by removing and adding the account back again.
 * Once in awhile, my instagram feed will not appear on my site.
    An error message“
   Error validating access token: Session has expire on (date). The current time
   is (date)”.
 * How can I solve this issue? My plugin is always up to date.

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [C Green](https://wordpress.org/support/users/cgreen177/)
 * (@cgreen177)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/error-validating-access-token-13/#post-13377728)
 * I have the same question. I can see that the personal account long lived tokens
   expire after 60 days (and business account now seem to expire after 90 days according
   to some testing I have done). Ideally I’d like to schedule a refresh once a month
   just to prevent expiry. Is there any way to do this via a cron job?
 * Thanks
 * Edit: Just saw your reply here: [https://wordpress.org/support/topic/token-expiration/#post-13377849](https://wordpress.org/support/topic/token-expiration/#post-13377849)
 * An auto-refresh running say every 30 days would be an amazing addition to the
   plugin. (But any interim cron job I could run before the update arrives would
   also be v useful!)
    -  This reply was modified 5 years, 8 months ago by [C Green](https://wordpress.org/support/users/cgreen177/).
    -  This reply was modified 5 years, 8 months ago by [C Green](https://wordpress.org/support/users/cgreen177/).
 *  Plugin Author [beluserra](https://wordpress.org/support/users/beluserra/)
 * (@beluserra)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/error-validating-access-token-13/#post-13412961)
 * Hi, thanks for your comments.
    the inclusion of expiration date was defined in
   the changes of data protection promoted by Instagram new API, so automate this
   in our app could be consider against API principles. But we highly recomment 
   to convert your account into business if you are using to be consume by the api,
   as the data recover is more extense. [https://quadlayers.com/documentation/instagram-feed-gallery/api/business/](https://quadlayers.com/documentation/instagram-feed-gallery/api/business/)
   regards
 *  [C Green](https://wordpress.org/support/users/cgreen177/)
 * (@cgreen177)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/error-validating-access-token-13/#post-13413935)
 * Hmm I know they introduced many privacy changes.
 * But would a call to the refresh access token endpoint not do this though? That’s
   my understanding from the new API documentation here:
 * [https://developers.facebook.com/docs/instagram-basic-display-api/reference/refresh_access_token](https://developers.facebook.com/docs/instagram-basic-display-api/reference/refresh_access_token)
 * > GET /refresh_access_token
   > Refresh a long-lived Instagram User Access Token that is at least 24 hours 
   > old but has not expired. Refreshed tokens are valid for 60 days from the date
   > at which they are refreshed.
 * I think this is what your competitors are using – and is what I assumed your 
   other post was talking about including in the product here: [https://wordpress.org/support/topic/token-expiration/#post-13377849](https://wordpress.org/support/topic/token-expiration/#post-13377849)
 * So you know the expiration date and could, within the framework of the new API,
   easily call the refesh access token endpoint they provide. Couldn’t you?
 * Edit: and switching to a business account just gives me an access token that 
   lasts 90 days instead of 60, from what I can see – so it won’t really solve the
   issue.
    -  This reply was modified 5 years, 8 months ago by [C Green](https://wordpress.org/support/users/cgreen177/).
 *  [Dave](https://wordpress.org/support/users/deeve007/)
 * (@deeve007)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/error-validating-access-token-13/#post-13445826)
 * Can you please advise if you will be addressing this issue? I’ve already had 
   to change from one plugin due to issues with them keeping their API code up to
   date, would obviously prefer not to do so again!
 *  Plugin Author [beluserra](https://wordpress.org/support/users/beluserra/)
 * (@beluserra)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/error-validating-access-token-13/#post-13452711)
 * Hi, thanks for your comments, we will consider this changes for next release.
   But Up to date is not an issue, only requires mannual update.
    Regards
 *  [C Green](https://wordpress.org/support/users/cgreen177/)
 * (@cgreen177)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/error-validating-access-token-13/#post-13453627)
 * Perhaps you could explain how to do that? As far as I can see the only way to‘
   manually’ update the token is to delete the account and re-add it – which obviously
   results in an outage. Am I missing something?
 * Perhaps the reason this hasn’t been an issue is that people are only just seeing
   their tokens expiring? As time goes on, more and more people will surely want
   this.
 * For me (as possibly with Dave?) the inability to be able to update the token 
   automatically is a deal breaker. And no easy manual update solution? I won’t 
   be recommending this plugin to people for that reason at the moment.
 *  [Dave](https://wordpress.org/support/users/deeve007/)
 * (@deeve007)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/error-validating-access-token-13/#post-13454051)
 * “Not an issue”? Having to remember to manually update any website that is using
   this plugin isn’t seen as an issue to you?? And if you forget the website content
   will break?
 * That’s hilariously bad software development practices, and as the same thing 
   exists with your “business” offering then it looks like we need to look for another
   plugin.
    -  This reply was modified 5 years, 8 months ago by [Dave](https://wordpress.org/support/users/deeve007/).
 *  [C Green](https://wordpress.org/support/users/cgreen177/)
 * (@cgreen177)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/error-validating-access-token-13/#post-13691496)
 * It gets even worse 🙂
 * I have a test site set up to test out the behaviour of various plugins. I’ve 
   linked this to a business instagram account and can see in the settings that 
   my token expires on 8th December. Imagine my surprise to see this error message
   on my test page!
 * Error validating access token: Session has expired on Saturday, 07-Nov-20 23:
   40:27 PST. The current time is Saturday, 21-Nov-20 04:28:12 PST.
 * ^^ That’s another example of bad coding in the plugin. I definitely wouldn’t 
   recommend this to anyone at the moment.
 * (You have to assume the pro version of the plugin uses the same codebase – because
   why wouldn’t it)
    -  This reply was modified 5 years, 6 months ago by [C Green](https://wordpress.org/support/users/cgreen177/).
 *  Plugin Author [beluserra](https://wordpress.org/support/users/beluserra/)
 * (@beluserra)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/error-validating-access-token-13/#post-13698276)
 * Hi [@cgreen177](https://wordpress.org/support/users/cgreen177/)
    thanks for your
   comment, I´ve just share the requirement to development team to be reviewed. 
   Realease is ongoing and automatic regeneration for the token is ongoing, thanks
   for your patience. Regards
 *  Plugin Author [beluserra](https://wordpress.org/support/users/beluserra/)
 * (@beluserra)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/error-validating-access-token-13/#post-13736067)
 * Please update to version 3.1 there token will be automatically renewed on that
   version.
    please pay special attention that is necessary to be still onworking
   to apply… regards
 *  [C Green](https://wordpress.org/support/users/cgreen177/)
 * (@cgreen177)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/error-validating-access-token-13/#post-13736693)
 * ^^ This is really good news! Thank you. I’ll keep an eye on this for another 
   3 months and hopefully see the tokens renew. I will also pass this on to my client
   who is still using it.
 *  [C Green](https://wordpress.org/support/users/cgreen177/)
 * (@cgreen177)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/error-validating-access-token-13/#post-14023937)
 * Well …. this *would* be good news if it actually worked. Once again your plugin
   is broken and I am telling my client to switch to Smash Balloon.
 * When I go to the settings I now see ‘invalid token’ – depsite being on 3.1 as
   you said, and ensuring I had a valid token.
 * Once again your plugin falls way short of what I would expect

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Error Validating Access Token’ is closed to new replies.

 * ![](https://ps.w.org/insta-gallery/assets/icon-256x256.gif?rev=3301774)
 * [Social Feed Gallery](https://wordpress.org/plugins/insta-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insta-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insta-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/insta-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insta-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insta-gallery/reviews/)

## Tags

 * [access token](https://wordpress.org/support/topic-tag/access-token/)

 * 12 replies
 * 4 participants
 * Last reply from: [C Green](https://wordpress.org/support/users/cgreen177/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/error-validating-access-token-13/#post-14023937)
 * Status: resolved