Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirected to instagram login page #410

Open
Zzombiee2361 opened this issue Dec 8, 2020 · 6 comments
Open

Redirected to instagram login page #410

Zzombiee2361 opened this issue Dec 8, 2020 · 6 comments

Comments

@Zzombiee2361
Copy link

When getting instagram url, it gets redirected to the login page (https://www.instagram.com/accounts/login/) thus resulting in invalid url when getting oembed endoints. I already set the instagram:token setting, and directly calling oembed endpoint with said token works fine.

@lozeone
Copy link

lozeone commented Dec 11, 2020

I'm seeing this too. it happens on the demo http://oscarotero.com/embed/demo even when providing a valid access token in the url

@RiverVanRain
Copy link

@lozeone @Zzombiee2361 Can you try with this PR #424 ?

@Zzombiee2361
Copy link
Author

@RiverVanRain I see that PR is for v3.x but I'm currently using v4.x so I can't test that. Although weirdly I no longer able to reproduce this issue anymore. But I'll let this issue open since I can still reproduce the issue on the demo page like @lozeone said.

@s3rgiosan
Copy link

I'm also seeing this too. Did anyone manage to get it working?

@pfbernardo
Copy link

pfbernardo commented Aug 2, 2021

Hi,

This is happening to me but only on my staging / production environment (AWS servers). On my local server it reads the page without any problems.

How did you solve this?

(by the way, the instagram url I'm trying is from a public post)

Thanks

@Zzombiee2361
Copy link
Author

Zzombiee2361 commented Aug 5, 2021

How did you solve this?

That's the neat part, I don't.

Like you said, the issue doesn't exists on local but very much exists on actual hosted server.

I work around this issue by checking if the url host is facebook or instagram, if it is, then use facebook's official oEmbed. You can check using parse_url($url) if host ends with instagram.com or facebook.com

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

No branches or pull requests

5 participants