scottsweb / wp-instagram-widget

❌ A WordPress widget for showing your latest Instagram photos.
115 stars 62 forks source link

403 URL missing signature date #81

Closed kappsell closed 6 years ago

kappsell commented 6 years ago

Hey, today when I've opened my site with Your plugin every image (out of 6 - in small size) had this 403 error. When I've changed size to large, they appeared again. Switching to other sizes than large didn't help. How can I fix this?

Best regards and thanks for awesome plugin!

scottsweb commented 6 years ago

I have not seen this error before. Can you tell me if you are using an @username in the widget or a #hashtag and provide a URL if possible. Also can you make sure your Instagram profile is public and that this is indeed the plugin you are using and finally the version you are using.

scottsweb commented 6 years ago

I can see the error you are having but I am not sure what is causing it. The profile is public and you should be able to use it.

Can you let me know what version of this plugin you are using.

kappsell commented 6 years ago

2.0.1 - installed yesterday. Now i've switched to Large size on Widget options and they are displaying fine.

scottsweb commented 6 years ago

I have a hunch this could be Facebook locking down assets to people without a valid API token... I can recreate it locally too. Worrying.

Will see if I can find a fix.

scottsweb commented 6 years ago

I have opened a PR above - you can download and test it from here: https://github.com/scottsweb/wp-instagram-widget/tree/81-json-changes (use the green download button)

can you test it for me?!

kappsell commented 6 years ago

Hey again. I did some tests, it works like a charm now :-) Thank You very much. How did You achieve this? Will obtaining this FB API token protect me from situations like this?

scottsweb commented 6 years ago

The JSON embedded into the Instagram site had changed. I used to manipulate the URLs for images sizes but that doesn't seem to work any more. I now use the image sizes they supply.