jsmrtn / craftagram

Grab Instagram content through the Instagram Basic Display API
Other
14 stars 8 forks source link

403 Forbidden on images from Instagram Feed #21

Closed brianrivet closed 4 years ago

brianrivet commented 4 years ago

Hi,

I'm using Craftagram 1.2.1 with Craft 3.4.30. I'm getting a 403 Forbidden response on my feed images. This is a recent development because it was working a few days ago. Can you help me to resolve?

Thanks!

Brian

brianrivet commented 4 years ago

The response from the Instagram API says "URL Signature Expired" if that helps.

jsmrtn commented 4 years ago

@brianrivet Have you set up a cron job to refresh your long access token? Tokens are only active for 60 days.

brianrivet commented 4 years ago

Hi Joshua,

You can close this ticket. I do have the cron job set up, but I think the problem was something else unrelated to the plugin. The home page template broke down temporarily for some reason but it came back up a short while later and the feed is working again.

Thanks!

On Aug 12, 2020, at 4:30 AM, Joshua Martin notifications@github.com wrote:

@brianrivet https://github.com/brianrivet Have you set up a cron job to refresh your long access token https://github.com/scaramangagency/craftagram#keeping-your-token-active? Tokens are only active for 60 days.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/scaramangagency/craftagram/issues/21#issuecomment-672764443, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARLIB4JAFP2K5AN6X3LVWTSAJOK5ANCNFSM4P34UJAA.

ColinTravis commented 1 year ago

Actually, I'm having this issue as well, but specifically only with Instagram videos, and only overnight. We do have this specific page it appears on being cached with Blitz, and I'm wondering if that has something to do with it. I have a CRON job set up to regenerate the Blitz cache on that page every night, but it's almost as if the URL signature expires after a few hours.

smaniren commented 1 month ago

i just added the plugin and i have the same problem. The image urls are fetched as expected. I can access the images when i just add the url to the browser. But used in the image tag, the images wont load because of a 403 error.

jsmrtn commented 3 weeks ago

Yes, pages cached with Blitz will need to have their cache rotated. The URL signature does expire per #65.