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

Facebook API October 24th changes #392

Closed
olivM opened this issue Oct 19, 2020 · 12 comments
Closed

Facebook API October 24th changes #392

olivM opened this issue Oct 19, 2020 · 12 comments

Comments

@olivM
Copy link

olivM commented Oct 19, 2020

Hi,

Is there a branch planned to test the upcoming change to Facebook/Intagram API endpoint ?

https://developers.facebook.com/docs/graph-api/changelog/version8.0#instagram
https://developers.facebook.com/docs/graph-api/changelog/version8.0#social-plugins

thanks

@oscarotero
Copy link
Owner

Thanks for notify this.
Seems like now facebook require an access token: https://developers.facebook.com/docs/plugins/oembed

I don't have much free time now so, if anyone want to work on this, PR is appreciated. If not, I'll work on it in next weeks.

@oscarotero
Copy link
Owner

I've added a couple of new settings to configure the access tokens for Facebook and Instagram (https://github.com/oscarotero/Embed#settings)

Could you please test if it works fine? I don't have access tokens for that and I don't want to create an app for that.

Thanks!

@reflexxion
Copy link
Contributor

I've added a couple of new settings to configure the access tokens for Facebook and Instagram (https://github.com/oscarotero/Embed#settings)

Could you please test if it works fine? I don't have access tokens for that and I don't want to create an app for that.

Thanks!

If I'm testing it right, it does not seem to work.
When the Extractor is present, the detectEndpoint method was called before I was able to set the settings.
A PR is incoming.

@Rapid0s
Copy link

Rapid0s commented Nov 2, 2020

Endpoints have to be updated also for tokens have any meaning

@oscarotero
Copy link
Owner

Released this change in https://github.com/oscarotero/Embed/releases/tag/v4.3.0
Thanks @reflexxion

@BSimon47
Copy link

BSimon47 commented Dec 8, 2020

May I inquire if this discussion covers the Drupal Module: https://www.drupal.org/project/url_embed ??

The resolution to this is of the greatest importance to finalizing the release of a website that has been a full year in the making and this policy change by Facebook has stalled the release.

Thank you Oscar, for both your Oembed program and resolving this!

@oscarotero
Copy link
Owner

We have updated Embed v3 & v4.
According to this #362 Drupal still using v2, a very old and unmaintained version of this library. I encourage to Drupal plugin creators to update the plugin to use v3 (or even better, v4).

@BSimon47
Copy link

@oscarotero - I just updated my Drupal distribution and can confirm that it updated embed/embed to version 3.4.10 however, the Facebook issue still exists. The URL entered renders as a URL only vs the intended card.

Your thoughts?

@oscarotero
Copy link
Owner

@BSimon47 Facebook and Instagram now require an api key to use its oembed api (here the docs: https://github.com/oscarotero/Embed/tree/v3.x#example-with-all-options)
I don't know how this is integrated with Drupal but there should be a way to configure an api key for this.

@BSimon47
Copy link

BSimon47 commented Dec 10, 2020 via email

@oscarotero
Copy link
Owner

You can test any url in the version 4.x here: https://oscarotero.com/embed/demo/index.php?url=https%3A%2F%2Fvariety.com%2F2020%2Ffilm%2Fnews%2Fdirectors-guild-warner-bros-hbo-max-deal-1234849614%2F&settings=

Version 3.x is here: https://oscarotero.com/embed3/demo/index.php?url=https%3A%2F%2Fvariety.com%2F2020%2Ffilm%2Fnews%2Fdirectors-guild-warner-bros-hbo-max-deal-1234849614%2F

The error in the embed code is from the website, not related with this library (that only returns the code provided by the website).

@BSimon47
Copy link

BSimon47 commented Dec 10, 2020 via email

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