Code Monkey home page Code Monkey logo

Comments (6)

mpratt avatar mpratt commented on September 28, 2024

Hi @billtomczak
Yes I'm planning on updating the library this weekend with new providers and addressing this issue! Thanks for the report!

from embera.

billtomczak avatar billtomczak commented on September 28, 2024

Nice! TY!

from embera.

mpratt avatar mpratt commented on September 28, 2024

I'm pushing a new version that should work. I Just deleted the legacy endpoints for both facebook and Instagram. Can you guys test it out and tell if it solves the problem for you?

@hustlereq Facebook and Insta updated their oembed endpoint and behaviour. It now requires the use of an access_token parameter.

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

How do you get the Access Token? You need to create an App on Insta/Facebook
How do you integrate the access token with Embera?

This should work now.

$config = [
 'instagram_access_token' => 'yourtokenforinsta',
 'facebook_access_token' => 'yourtokenforfacebook'
];

$embera = new Embera($config);

Plz let me know if it works!

from embera.

billtomczak avatar billtomczak commented on September 28, 2024

Thanks Michael - I can confirm this is fixed

from embera.

billtomczak avatar billtomczak commented on September 28, 2024

@mpratt @hustlereq -- One thing we've been running into with the new Facebook/Instagram oembed is some pretty severe rate limiting. One of our customers is constantly getting refused requests on a site with lots of these links on their site.

Not a lot we can do about it, I suppose

from embera.

billtomczak avatar billtomczak commented on September 28, 2024

@mpratt @hustlereq -- I was mistakenly using the Client Token which has severe limits. Using the App Secret provides much more generous limits that are not a problem for my customers.

One thing I'm having rouble with is the oembed_page endpoint. Facebook is returning a permission denied error. So far haven't found the magic incantation to use this endpoint.

from embera.

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.