-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Remove Embeds for Facebook and Instagram #24472
Conversation
@mkaz merge conflict |
e39a1f8
to
9fe23e2
Compare
Thanks @ajitbohra - I forgot to update prior, fixed the code to work properly now with variations. |
Size Change: +1.15 kB (0%) Total Size: 1.16 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks! - I'm wondering though how and when this will be communicated with users who already had embed content from Facebook and Instagram. When embed support stops will result in fallback with just a link and there might be a confusion for that.
Co-authored-by: Ajit Bohra <ajit@lubus.in>
@ntsekouras Good questions. First the experience, for existing embeds the API will return either invalid or potential a notice embed that the service has changed, this is up to Facebook/Instagram to return a proper embed response. If the API returns an invalid response, then a simple link will be shown instead of the embed. As far as communication, Facebook announced in this post and updated their API docs, both of which I know few people will see. WordPress will include in release notes, but likewise few users read the release notes. The vast majority of users will first "hear about it" when they notice their embeds are broken. We will also create a WordPress support document to explain, so when people notice the issue they can get the answer. |
This sounds like a good plan - being proactive! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mkaz! 👍
I published oEmbed Plus today, that takes care of the PHP side of the replacement APIs. I'll look to implement the JS side of it, to see if I can make this plugin provide a seamless transition. Any input is welcome. |
Description
This PR removes the Facebook & Instagram blocks from the inserter. Per Facebook, the embed APIs are going to require an authentication token so will remove from Gutenberg embeds.
As done with the deprecated CollegeHumor embed, I removed the pattern regular expression, and added the
scope: [ 'block' ]
that removes them from the inserter.Fixes #24389
Deadline: October 24, 2020
Core will remove API in WP 5.6
Related: https://core.trac.wordpress.org/ticket/50861
Types of changes
Move Facebook and Instagram embeds to
others
section in embeds and addsupport: { inserter: false }
We will probably want to update support documentation.