واجهة برمجة تطبيقات oEmbed الخاصة بـ Instagram و Facebook ستتوقف عن العمل، ماذا عن Onebox؟

On the 24th of October the unauthenticated oEmbed API from Facebook and Instagram will stop working. They will require authentication to fetch oEmbed objects.

Are there any consequences for Onebox? I couldn’t find any changes in the GitHub repo regarding this yet.

5 إعجابات

A good point needs to be addressed. You have to provide API keys like for rendering Twitter embeds going forward.

The Facebook oEmbed endpoints require either an App Access Token (recommended) or Client Access Token.

إعجاب واحد (1)

The new policies are now in effect. Instagram seems to be broken here and on self-hosted sites (updated to v2.6.0.beta4)

https://www.instagram.com/p/CGz4LkeAQlW/

Facebook links work however

إعجاب واحد (1)

Yes @jamie.wilson is working on this.

3 إعجابات

If you’re running an up-to-date Discourse instance you should now be able to add a token that will allow oneboxes to be generated using the new API.

I’ve not yet written up step-by-step instructions on how to generate the token, but if you are comfortable in Facebook’s developer site you can go through the ‘Requirements’ listed here:

to generate a token. That token can then be entered as the value for the facebook_app_access_token SiteSetting.

8 إعجابات
  1. Add Product oEmbed to your app
  2. Under Settings - Advanced, find the Client Token
  3. And finally combine in a your App ID numbers and the token and ad a pipe | character in between: 12324323|asdasdasdasd ← That is what you need put to the Discourse setting.
6 إعجابات

Hi Jamie,

I’d love that step-by-step guide :slight_smile:

إعجاب واحد (1)

14 posts were split to a new topic: How to obtain an App Token to allow Instagram Oneboxes