Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

Some feeds provide 302 temporary redirect status codes and will not load images #136

Open
pthurmond-vmlyr opened this issue Apr 19, 2021 · 23 comments

Comments

@pthurmond-vmlyr
Copy link

pthurmond-vmlyr commented Apr 19, 2021

I am finding that some feeds are providing 302 status codes, which is a redirect. But for some reason will not render the redirected image.

Example this fails: https://www.instagram.com/soapandglory/
But this one is fine: https://www.instagram.com/pjerky/

Yes, the second one is my very underused personal one. But I found this to be true in testing other feeds. Not sure what can be done about it to be honest.

@JhonnyXD
Copy link

Hi @pthurmond-vmlyr
I have the same problem! I saw what is happening on the websites that move the caption on the images.
In the examples on the official website the problem is also happening, see: https://www.sowecms.com/demos/InstagramFeed/#examples

@jsanahuja Is there any solution? Thank you all so much for your help.

@romanklabal
Copy link

Same issue here, across completely separate websites and separate IG usernames.

@laryn
Copy link

laryn commented Apr 26, 2021

I'm seeing this same thing as well, on separate sites, separate IG users.

@JhonnyXD
Copy link

Is the problem happening again, any solution?
On the official website the examples present problems too, so I believe it is a bug.

@romanklabal
Copy link

Pretty sure IG are tightening access to their data again, I am unable to load data via the __a=1 param that used to work for past few years.

@laryn
Copy link

laryn commented Apr 26, 2021

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.instagram.com/graphql/query/?query_id=17888483320059182&variables={%22id%22:%2220311520%22,%22first%22:18,%22after%22:null}. (Reason: CORS request did not succeed).

Instagram Feed: Unable to fetch the given user/tag. Instagram responded with the status code: 0 5

sowecms-jquery-feed-errors

@ctadlock
Copy link

I think Instagram is rate limiting by the client IP address. It's not by website, Instagram account...

As a test for yourself.. for a website/account that is not working.. open that same site up on a different computer/phone that has a different public IP address. For me I did this my tethering my PC to my phone when it was on cellular data and not Wi-Fi.

Please report back your tests here to confirm this issue.

@Morecoffee
Copy link

I tried the same thing and it worked for a few reloads and then failed.

@castellaniperez
Copy link

Same here..... any updates?

@JhonnyXD
Copy link

I've been researching the problem and as I understand it, Instagram found a method to block requests for images. Even using a proxy this is occurring. Even if they manage to switch to another proxy server, later they will block again. :(
Unfortunately I think it's the end :(

@jonasmarco
Copy link

Oh my !! All company websites where we used the plugin failed with this new Instagram block!
Sad

@maxlibin
Copy link

+1

@perryworld
Copy link

I'm having the same problem on a lot of my websites
Seems to show the placeholder and the text description but doesn't provide the images
Any ideas on how to solve this ;o(
Instagram

@frogerfred
Copy link

Same problem here :/

@ribeiroeder
Copy link

Hello, not wanting to be negative, but I believe that it will be very unlikely to find a solution since instagram is very strict in unauthenticated access.

As I have several sites that depend on a smilar script, I searched and improved two scripts that use the new official method via the graph.instagram API.

The first uses javascript and the second PHP cURL, I am still testing it but the results have been great.

@laryn
Copy link

laryn commented Apr 30, 2021

Do you have public links?

@ribeiroeder
Copy link

jQuery Ajax for feed Instagram Graph API
https://github.com/ribeiroeder/jquery-feed-instagram-graph

PHP cURL for feed Instagram Graph API
https://github.com/ribeiroeder/php-curl-instagram-graph

@jsanahuja Sorry for posting another third party solution here, your script is incredible, much more complex and well developed than the scripts above and it helped me for a long time. But either way I need to be generating alternatives because customers keep asking about a solution :(

@terryapodaca
Copy link

I upgraded a site last week and found this issue on one of my sites. What a bummer because this was such a great script/plugin! Does this mean that there will likely not be a fix? I really didn't want to have to switch to a script that required Access Tokens/Keys...

@ribeiroeder how does your jQuery script work?

@romanklabal
Copy link

Nevermind working with a token, what is killing me is the fact that they expire after 2 months. Thats why this script was such a blessing. Fuck Instagram.

@JhonnyXD
Copy link

JhonnyXD commented May 1, 2021

@romanklabal Truth! The problem with working with the Token is that it expires as you said. Another problem that we have to have access to our customers' account to generate the Token and this is very annoying!
I don't understand why Instagram's TRASH does not allow public access to the Feed as it does with Facebook.

@JhonnyXD
Copy link

JhonnyXD commented May 1, 2021

I understood that this script / plugin uses the Google proxy to access the images anonymously, here is an excerpt from the code:
https://images"+~~(3333*Math.random())+"-focus-opensocial.googleusercontent.com/gadgets/proxy?container=none&url="+b)
Is there no other random proxy in this regard? Can anyone adapt something?

@JhonnyXD
Copy link

JhonnyXD commented May 1, 2021

If someone has more time than me the name of the technique used in this script would be: Data scraping. <--- search google about it ...
I'll see if I can help with anything around here and report back as soon as possible.

@ribeiroeder
Copy link

@terryapodaca My script uses the token as a base, it is practically a way that uses the official method to connect, I understand that it is boring to set up a token, but at the same time, this great plugin is causing us constant difficulties with instagram always finding a way to block.

@JhonnyXD I also find it very annoying to depend on accessing the customer's account to earn the first token.

@romanklabal would like to be able to count on an automated solution to renew them.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests