Hi, exactly the same error at me. Token is on the place but “Failed to fetch Instagram posts.” at backend. Nothing changed at site from where the feed was working.
It could be any number of reasons so could you please share temporary admin access to help@bricksbuilder.io with a link to this thread so we can investigate?
Thank you for sharing access. It looks like the issue is with your Instagram token, which has expired. The error from the Instagram API was “Error validating access token: Session has expired on Saturday, 25-Nov-23 21:56:24 PST.”
We’ve set up an automatic refresh for the token in Bricks, but it might not run if your site doesn’t get enough visitors. To ensure it works consistently, consider setting up a real CRON job. If you need guidance on this, just search “How to replace the WordPress CRON with a real CRON job” — there are plenty of helpful resources available.
Feel free to reach out if you have any more questions.
@pesiiin It sounds like you might be experiencing the same issue with the “Failed to fetch Instagram posts” error. The token might have expired for you as well. I’d suggest generating a new one using the guide above. Also, ensure your CRON job is set up correctly to avoid similar issues in the future. Let us know how it goes or if you need any further help!
Thank you for sharing access. Yup looks like you have the same issue as Amanda. The response is “Error validating access token: Session has expired on Monday, 01-Jan-24 12:26:35 PST.”
So the advice I shared above of setting up a real CRON & getting a new token manually applies to your use case too.
Thank you for checking this out.
It seems Meta has updated their platform and other is not an option anymore.
The client alerted me to this when I asked them to go through the steps again for a new token.
It seems a user now has to select Consumer to follow the steps outlined in your documentation.
I’ve got it working when testing with my own accounts and I will pass the information onto the client. I will also look into the cron job. However, this website does get a lot of traffic.
Same thing has happened on my site as well. I followed your suggestion and even tried to manually refresh token before expiry and it still looks like it’s expired. Feed is not showing.
I think I’m able to replicate this locally as well now. Could you please share temporary admin access to help@bricksbuilder.io with a link to this forum thread? I’ll investigate the issue further and upload a fix for you to test. A staging site is fine too.
I understand, no worries, we’re just debugging the automatic token regeneration on different setups. Amanda already sent access details so that should suffice.
I was able to replicate the issue with automatic token regeneration and have created an internal ticket to address this. Thank you for your cooperation!
Hi, I see the event scheduled (bricks_refresh_instagram_access_token) but it’s not refreshing the token
I see on Meta documentation that they say to use this command:
GET https://graph.instagram.com/refresh_access_token
?grant_type=ig_refresh_token
&access_token={long-lived-access-token}