GithubHelp home page GithubHelp logo

Comments (6)

iaarnio avatar iaarnio commented on August 11, 2024 4

Live demo (https://sugarshin.github.io/react-instagram-embed/) of this library is now returning 400 error.

image

@sugarshin, any possibility to merge the PR to fix issues people are having with the deprecated API?

from react-instagram-embed.

phil-monroe avatar phil-monroe commented on August 11, 2024 1

I'm actually not a user of this library, but it seems that Facebook is indeed deprecating the embed endpoint that this library is using on October 24, 2020.

https://developers.facebook.com/docs/instagram/oembed-legacy

While it looks like it would likely be a simple change to uptake the new OEmbed endpoint, it will require a configured Client Access Token with the requests.

https://developers.facebook.com/docs/instagram/oembed/

from react-instagram-embed.

iaarnio avatar iaarnio commented on August 11, 2024

I'm just a user of this library but this Instagram API deprecation does not seem to affect this library. This library uses embedding API which is to be still valid: https://developers.facebook.com/docs/instagram/embedding/

from react-instagram-embed.

iaarnio avatar iaarnio commented on August 11, 2024

I checked the code and this library is using the deprecating API endpoint:

src/index.tsx:
private fetchEmbed(queryParams: string): void {
    this.request = this.createRequestPromise(`https://api.instagram.com/oembed/?${queryParams}`);

Using this API endpoint and the query parameter breaking_change=oembed will result '400 bad request' response.
Also the API endpoint prints out This endpoint is deprecated. Please read https://developers.facebook.com/docs/instagram/oembed to learn how to migrate your endpoint.

The new API endpoint would be https://graph.facebook.com/v8.0/instagram_oembed/
However, switching to this new API endpoint is a breaking change as it requires access_token to work.
Library user would need to provide it as an URL parameter.

from react-instagram-embed.

iaarnio avatar iaarnio commented on August 11, 2024

There is now PR for this API change too: #242

from react-instagram-embed.

sugarshin avatar sugarshin commented on August 11, 2024

solved: #242

from react-instagram-embed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.