Skip to content

Commit

Permalink
Remove Embeds for Facebook and Instagram (#24472)
Browse files Browse the repository at this point in the history
* Embeds moved to variations, fix

* Update packages/block-library/src/embed/variations.js

Co-authored-by: Ajit Bohra <ajit@lubus.in>

Co-authored-by: Ajit Bohra <ajit@lubus.in>
  • Loading branch information
mkaz and ajitbohra committed Sep 2, 2020
1 parent ea157ae commit 87c4dc5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/block-library/src/embed/variations.js
Expand Up @@ -56,25 +56,31 @@ const variations = [
attributes: { providerNameSlug: 'youtube', responsive: true },
},
{
// Deprecate Facebook Embed per FB policy
// See: https://developers.facebook.com/docs/plugins/oembed-legacy
name: 'facebook',
title: 'Facebook',
icon: embedFacebookIcon,
keywords: [ __( 'social' ) ],
description: __( 'Embed a Facebook post.' ),
patterns: [ /^https?:\/\/www\.facebook.com\/.+/i ],
scope: [ 'block' ],
patterns: [],
attributes: {
providerNameSlug: 'facebook',
previewable: false,
responsive: true,
},
},
{
// Deprecate Instagram per FB policy
// See: https://developers.facebook.com/docs/instagram/oembed-legacy
name: 'instagram',
title: 'Instagram',
icon: embedInstagramIcon,
keywords: [ __( 'image' ), __( 'social' ) ],
description: __( 'Embed an Instagram post.' ),
patterns: [ /^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i ],
scope: [ 'block' ],
patterns: [],
attributes: { providerNameSlug: 'instagram', responsive: true },
},
{
Expand Down

0 comments on commit 87c4dc5

Please sign in to comment.