Official WordPress plugin for embedding Threads, Instagram, and Facebook content. Simply paste a Threads, Instagram, or Facebook URL into the WordPress editor and get a rich embed. No access tokens or configuration required.
by facebookPHP
Last 12 weeks · 11 commits
5 of 6 standards met
Description Fixes two WordPress.org listing issues flagged during the 1.2.1 publish: Short description exceeded the 150-character limit (was 156). Trimmed to 131 characters. Tags exceeded the 5-tag maximum (had 7). Reduced to 5: , , , , . No code changes (only the plugin metadata was modified). Type of Change [ ] — Bug Fix (non-breaking change that fixes an issue) [ ] — New Feature (non-breaking change that adds functionality) [x] — Minor Change (refactor, performance, style) [ ] — Breaking Change (fix or feature that would cause existing functionality to change) Checklist [x] My code follows the WordPress Coding Standards ( passes). [x] I have tested my changes and the test suite passes (). [x] My changes generate no new PHP warnings or notices. [x] I have performed a self-review of my code. [x] I have signed the CLA. Make sure to run beforehand: Changelog Entry Trimmed short description to meet the 150-character WordPress.org limit. Reduced tags to the 5-tag WordPress.org maximum. Test Plan 1. Build the .zip file by running this command: . This will create a file called , which we will use in a later step. 2. Navigate to https://playground.wordpress.net. 3. Press the WordPress logo/icon in the top-left corner and select the "Plugins" tab. 4. Click the "Add Plugin" button. 5. Click the "Upload Plugin" button. 6. After clicking the "Choose File" button, select the newly created "meta-embeds-1.2.2.zip" file. 7. Click the "Install Now" button. 8. Click the "Activate Plugin" button. 9. Navigate to the "Pages" tab and click on the "Sample Page" option. 10. Click the "+" icon and search for the "Instagram Embed" icon. 11. Paste post URLs from Threads, Instagram, and Facebook. Screenshots
Description This PR fixes and hardens Facebook embed support shipped in v1.2.0. Bug Fix: Facebook embeds rendered in the editor but not on published pages. The SDK was enqueued without the fragment, so it loaded but never processed or divs. I added the field to providers so that the SDK loads with the correct fragment. Hardening: Embed script stripping now skips duplicate regex runs when multiple providers share the same SDK (Facebook posts and videos both use ). Tightened the stripping regex from (matches anything after the base URL) to (only allows fragments or query strings). Fixed Instagram provider test assertion — was matching the ambiguous which could hit a Facebook endpoint instead of the Instagram one. Other:** Updated Facebook oEmbed endpoints to use versioned API paths (). Synced version to . Type of Change [x] — Bug Fix (non-breaking change that fixes an issue) [ ] — New Feature (non-breaking change that adds functionality) [x] — Minor Change (refactor, performance, style) [ ] — Breaking Change (fix or feature that would cause existing functionality to change) Checklist [x] My code follows the WordPress Coding Standards ( passes). [x] I have tested my changes and the test suite passes (). [x] My changes generate no new PHP warnings or notices. [x] I have performed a self-review of my code. [x] I have signed the CLA. Make sure to run beforehand: Changelog Entry Fixed Instagram provider test to match specifically instead of the ambiguous . Fixed duplicate embed script removal when multiple providers use the same SDK (e.g. Facebook posts and videos). Tightened embed script stripping regex to only allow URL fragments or query strings after the base SDK URL. Updated Facebook oEmbed endpoints to use versioned API paths (). Fixed Facebook embeds not rendering on published pages by enqueuing the SDK with the required fragment. Test Plan 1. Build the .zip file by running this command: . This will create a file called , which we will use in a later step. 2. Navigate to https://playground.wordpress.net. 3. Press the WordPress logo/icon in the top-left corner and select the "Plugins" tab. 4. Click the "Add Plugin" button. 5. Click the "Upload Plugin" button. 6. After clicking the "Choose File" button, select the newly created "meta-embeds-1.2.1.zip" file. 7. Click the "Install Now" button. 8. Click the "Activate Plugin" button. 9. Navigate to the "Pages" tab and click on the "Sample Page" option. 10. Click the "+" icon and search for the "Instagram Embed" icon. 11. Paste post URLs from Threads, Instagram, and Facebook. Screenshots
Description This PR adds Facebook post and video embed support to the Meta Embeds for WordPress plugin. Type of Change [ ] — Bug Fix (non-breaking change that fixes an issue) [x] — New Feature (non-breaking change that adds functionality) [ ] — Minor Change (refactor, performance, style) [ ] — Breaking Change (fix or feature that would cause existing functionality to change) Checklist [x] My code follows the WordPress Coding Standards ( passes). [x] I have tested my changes and the test suite passes (). [x] My changes generate no new PHP warnings or notices. [x] I have performed a self-review of my code. [x] I have signed the CLA. Changelog Entry Add Facebook post and video embed support. Test Plan 1. Build the .zip file by running this command: . This will create a file called , which we will use in a later step. 2. Navigate to https://playground.wordpress.net. 3. Press the WordPress logo/icon in the top-left corner and select the "Plugins" tab. 4. Click the "Add Plugin" button. 5. Click the "Upload Plugin" button. 6. After clicking the "Choose File" button, select the newly created "meta-embeds-1.2.0.zip" file. 7. Click the "Install Now" button. 8. Click the "Activate Plugin" button. 9. Navigate to the "Pages" tab and click on the "Sample Page" option. 10. Click the "+" icon and search for the "Facebook Embed" icon. 11. Paste a Facebook post URL. 12. Paste a Facebook video/reel URL. Screenshots
Repository: facebook/meta-embeds-for-wordpress. Description: Official WordPress plugin for embedding Threads, Instagram, and Facebook content. Simply paste a Threads, Instagram, or Facebook URL into the WordPress editor and get a rich embed. No access tokens or configuration required. Stars: 2, Forks: 0. Primary language: PHP. Languages: PHP (71.9%), Shell (16.6%), JavaScript (10.2%), CSS (1.3%). License: GPL-2.0. Homepage: https://wordpress.org/plugins/meta-embeds/ Topics: facebook, instagram, meta, oembed, threads, wordpress. Latest release: v1.2.2 (2w ago). Open PRs: 0, open issues: 0. Last activity: 2w ago. Community health: 87%. Top contributors: anujs3, pestevez.