-
Notifications
You must be signed in to change notification settings - Fork 25
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
Instagram links fail #104
Comments
+1 i'm also having the same issue with this. |
That kind of goes against the whole oembed vibe 😠 Looked at their new docs and it says its not supposed to be deprecated until October 24th. So hopefully it will get back up and I have time to figure something out. |
It seems the endpoint in the oembed list has been updated to the new endpoint and is therefore requiring an access token giving us 400. I think this can be fixed by overriding the url to the soon to be deprecated oembed url:
or get an access token and add that to settings:
I cannot test this until tonight. |
The access_token approach works. Had to jump through loads of hoops, make a Facebook Developer account, make an app, create an App Access Token, etc, but it works. |
Great news @philsturgeon, would you be willing to add a not about this in the documentation (readme.md)? |
@raae will do, but first I'm confused. Using the old API does seem to work for now:
It really seems like:
should work if thats how you make |
Somewhere I found info that the old api will be turned off sometime this month. So in our docs we can go for the access token solution. And feel free to let people now it's a pain to get hold of an access token. I am quite furious with Instagram closing of what is supposed to be an open standard... |
Here you go: #110 Yeah I'm pretty annoyed too. They said they'd deprecate it Oct 24th then just shut shit down before that. Even if this happened on 24th, "responding with a 400" is not deprecating, that's bricking it. I wrote up a tutorial a) ranting, b) explaining how to do this nicely without hardcoding tokens in the repo: https://phil.tech/2020/gatsby-instagram-oembed-failures/ I would still love to figure out why we're getting 400's via the plugin but using curl works fine. User agent sniffing perhaps? |
I am not completely sure adding the url param works, so it might be using the new address and I am guessing then it would return 400 when no access token? |
Instagram is switching to a new API requiring registration and apparently they already stopped working. Building fails with
Error: Request failed with status code 400
The text was updated successfully, but these errors were encountered: