Contributors: alleyinteractive
Tags: oembed, facebook, instagram, cli
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
CLI commands to audit Facebook and Instagram oembeds in post content.
Facebook is dropping support for unauthenticated Facebook and Instagram oEmbeds on October 24th.
oEmbed is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly. Source: oembed.com
This means that beginning October 24th, the Facebook and Instagram embeds on all WordPress sites will display a link to the content, rather than a rendered embed/widget.
More WordPress Community Info:
- Upload
/fb-ig-embeds-audit/
folder to the/wp-content/plugins/
directory - Activate the plugin through the 'Plugins' menu in WordPress
Run the command from any WP CLI command line,
Run the audit on all content
$ wp fb-ig-embeds-audit list
Target a specific post by id
$ wp fb-ig-embeds-audit list --post_id=123
Modify the output format
$ wp fb-ig-embeds-audit list --format=json
- Fix PHPCS warnings and errors on the bulk task trait.
- Initial public release.