Support » Plugin: Social Feed Gallery » Error Validating Access Token

  • Resolved mpddev

    (@mpddev)


    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 11 replies - 1 through 11 (of 11 total)
  • 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

    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 4 months, 2 weeks ago by cgreen177.
    • This reply was modified 4 months, 2 weeks ago by cgreen177.
    Plugin Author beluserra

    (@beluserra)

    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/
    regards

    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

    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

    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 4 months, 1 week ago by cgreen177.
    Dave

    (@deeve007)

    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

    (@beluserra)

    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

    cgreen177

    (@cgreen177)

    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

    (@deeve007)

    “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 4 months ago by Dave.
    cgreen177

    (@cgreen177)

    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 2 months ago by cgreen177.
    Plugin Author beluserra

    (@beluserra)

    Hi @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

    (@beluserra)

    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

    ^^ 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.

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.