Title: oEmbed Plus
Author: Ayesh Karunaratne
Published: <strong>2020 年 8 月 12 日</strong>
Last modified: 2021 年 7 月 15 日

---

搜尋外掛

![](https://ps.w.org/oembed-plus/assets/banner-772x250.png?rev=2559724)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/oembed-plus/assets/icon-256x256.png?rev=2559724)

# oEmbed Plus

 由 [Ayesh Karunaratne](https://profiles.wordpress.org/ayeshrajans/) 開發

[下載](https://downloads.wordpress.org/plugin/oembed-plus.1.6.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/oembed-plus/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/oembed-plus/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/oembed-plus/#developers)

 [技術支援](https://wordpress.org/support/plugin/oembed-plus/)

## 外掛說明

Adds support for embedding Facebook and Instagram posts in Block Editor (Gutenberg)
and Classic Editor. This feature was removed in WordPress core due to deprecation
of legacy APIs WordPress core used.

Prior to WordPress 5.5.1, WordPress had support to embed Instagram and Facebook 
photos, videos, notes, quizes, etc in posts created with Block Editor and Classic
Editor. However, Facebook removed this legacy API in October 2020, and this plugin
implements the new APIs to bring back support for Facebook and Instagram content
embedding.

Note that you will need to register a Facebook developer account and create an app
to get API credentials that this plugin uses. There is no coding necessary, but 
an API key needs to be created and set for the plugin.

Detailed setup instructions are available in [oEmbed Plus guide at PHP.Watch](https://php.watch/articles/wordpress-facebook-instagram-oembed)

This project is not owned, endorsed, or otherwise affiliated with Facebook Inc. 
or Instagram LLC.

## 螢幕擷圖

[⌊Plugin configuration (Admin <span aria-hidden=⌉⌊Plugin configuration (Admin <span aria-hidden=⌉→ Settings  Writing)” class=”wp-image-9000001″ srcset=”https://i0.wp.com/ps.w.org/oembed-plus/assets/screenshot-1.jpg?rev=2358361&w=300 300w, https://i0.wp.com/ps.w.org/oembed-plus/assets/screenshot-1.jpg?rev=2358361&w=600 600w, https://i0.wp.com/ps.w.org/oembed-plus/assets/screenshot-1.jpg?rev=2358361&w=900 900w” sizes=”(max-width: 599px) 50vw, 33vw” width=”913″ height=”437″ loading=”eager” fetchpriority=”high” decoding=”async”/>](https://ps.w.org/oembed-plus/assets/screenshot-1.jpg?rev=2358361)

Plugin configuration (Admin  Settings  Writing)

[⌊Registering a new Facebook App⌉⌊Registering a new Facebook App⌉[

Registering a new Facebook App

[⌊Example embedded content⌉⌊Example embedded content⌉[

Example embedded content

## 常見問題集

### WordPress already supports this feature in core

Yes, but only in versions prior to 5.5.1, and it used a legacy API that stopped 
working after October 24, 2020. See [#50861](https://core.trac.wordpress.org/ticket/50861)
for more information.

### This version requires PHP 7.1

Yes, this plugin requires PHP 7.1 or later. That is by design.

### Can you add support for service X?

Probably not. This plugin is intended to bring back functionality the WordPress 
core eventually drops.

### How do I set the API ID and secret?

Go to Settings -> Writing, and you will see a section to enter Facebook App ID and
Secret.

Alternately, you can set the Facebook App ID and secret in the `wp-config.php` file.
If they are set in the `wp-config.php` file, the settings form in Settings -> Writing
section will be disabled. To enter the Facebook App ID and secret, update the `wp-
config.php` file in root of your WordPress installation, and append the following
lines:

    ```
    define('OEMBED_PLUS_FACEBOOK_APP_ID', '<App ID Here>');
    define('OEMBED_PLUS_FACEBOOK_SECRET', '<Secret Here>');
    ```

### Optionally hide the admin UI

It is possible to completely hide the administration form added by this plugin in
Admin  Settings  Writing page. This can be helpful if you set the configuration 
values in the `wp-config.php` file, and keep the administration UI minimal.

To hide the administration form, update the `wp-config.php` file with an extra line:

    ```
    define('OEMBED_PLUS_HIDE_ADMIN_UI', true);
    ```

## 使用者評論

![](https://secure.gravatar.com/avatar/eee31e1f74b13d4fa507e6fcf98cddb5490229569122077bb81191cecd561f56?
s=60&d=retro&r=g)

### 󠀁[Awesome](https://wordpress.org/support/topic/awesome-9544/)󠁿

 [tavara](https://profiles.wordpress.org/tavara/) 2022 年 7 月 12 日

Facebook oEmbed needs app review. You need to ask for access to the API. After that,
this plugin works great!

![](https://secure.gravatar.com/avatar/590c1a85322729f2345aa128684db6522b37951ea328215b6f501ed8439c0a91?
s=60&d=retro&r=g)

### 󠀁[Love the wp-config option!](https://wordpress.org/support/topic/love-the-wp-config-option/)󠁿

 [Jimmy Lee](https://profiles.wordpress.org/shirtguy72/) 2022 年 5 月 9 日

Thanks for this plugin!

![](https://secure.gravatar.com/avatar/16df3833f7b3931643516582470576f0a42f9d9d016655309b8cac1b847c1cf1?
s=60&d=retro&r=g)

### 󠀁[Works well](https://wordpress.org/support/topic/works-well-2184/)󠁿

 [janukahw](https://profiles.wordpress.org/janukahw/) 2021 年 2 月 4 日

It works well – make sure you register a Facebook App and get the ID and Key to 
use in the plugin.

![](https://secure.gravatar.com/avatar/199dffa202beca82ab8592a44221d099ff5ade36431a7efffd6f7e1c92448a0d?
s=60&d=retro&r=g)

### 󠀁[Nice](https://wordpress.org/support/topic/nice-3667/)󠁿

 [Junior Miranda](https://profiles.wordpress.org/jmjunior/) 2020 年 10 月 26 日

The plugin solves the problem whit the Instagram and Facebook embed codes.

![](https://secure.gravatar.com/avatar/86c46ccacac2166f2bfb52a3f2b8a1f61731fa4a4d54c4788a38ad508e890741?
s=60&d=retro&r=g)

### 󠀁[Works perfectly, and elegantly coded for MultiSite](https://wordpress.org/support/topic/works-perfectly-and-elegantly-coded-for-multisite/)󠁿

 [Jason LeMahieu (MadtownLems)](https://profiles.wordpress.org/madtownlems/) 2020
年 10 月 20 日

As the title suggests, this is written beautifully and works perfectly. No bloat.
On-screen links to where you need to go at facebook and documentation. And the ability
to define keys in wp-config make it great for multisite.

![](https://secure.gravatar.com/avatar/e2541aa13db908241bc9b79ecc7605c9d2033b5f878c02d87c681ffc21a019bf?
s=60&d=retro&r=g)

### 󠀁[Helpful and Timely Plugin](https://wordpress.org/support/topic/helpful-and-timely-plugin/)󠁿

 [diraph](https://profiles.wordpress.org/diraph/) 2020 年 10 月 13 日

Thanks for this helpful and timely plugin. It means a lot.

 [ 閱讀全部 7 則使用者評論 ](https://wordpress.org/support/plugin/oembed-plus/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈oEmbed Plus〉的開發相關工作。

參與者

 *   [ Ayesh Karunaratne ](https://profiles.wordpress.org/ayeshrajans/)

〈oEmbed Plus〉外掛目前已有 1 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/oembed-plus/contributors)
為這個外掛做出的貢獻。

[將〈oEmbed Plus〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/oembed-plus)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/oembed-plus/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/oembed-plus/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/oembed-plus/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/oembed-plus/)。

## 變更記錄

**1.0**

 * Initial release.

**1.1**

 * Fixes a bug in Instagram oEmbed URL endpoint check.
 * Minor improvements in the Facebook App ID field validations.

**1.2**

 * Add `https://www.facebook.com/watch/?v=<ID>` URL pattern to supported video URL
   patterns.
 * Allow setting Facebook App ID and secret with a [constant in `wp-config.php` file](https://php.watch/articles/wordpress-facebook-instagram-oembed#wp-config).

**1.4**

 * Add an option to completely hide the admin UI by setting `OEMBED_PLUS_HIDE_ADMIN_UI`
   PHP constant in `wp-config.php` file.
 * Code styling clean-up.
 * The minimum required PHP version is changed to 7.1 from PHP 7.3. It’s strongly
   suggested to use more recent and supported PHP versions nonetheless.

**1.5**

 * Updates to the readme file to make it more clear that this plugin supports both
   Classic Editor and Block Editor.

**1.6**

 * Updated the plugin minimum WordPress core requirement to 4.9, along with relevant
   compatibility changes. The plugin works on all WordPress versions from 4.9 through
   5.6 and up.

## 中繼資料

 *  版本 **1.6**
 *  最後更新 **5 年前**
 *  啟用安裝數 **4,000+**
 *  WordPress 版本需求 ** 4.9 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.6.17**
 *  PHP 版本需求 ** 7.1 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/oembed-plus/) 及 [Swedish](https://sv.wordpress.org/plugins/oembed-plus/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/oembed-plus)
 * 標籤:
 * [embed](https://tw.wordpress.org/plugins/tags/embed/)[facebook](https://tw.wordpress.org/plugins/tags/facebook/)
   [Instagram](https://tw.wordpress.org/plugins/tags/instagram/)[oembed](https://tw.wordpress.org/plugins/tags/oembed/)
 *  [進階檢視](https://tw.wordpress.org/plugins/oembed-plus/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  7 個 5 星使用者評論     ](https://wordpress.org/support/plugin/oembed-plus/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/oembed-plus/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/oembed-plus/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/oembed-plus/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/oembed-plus/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/oembed-plus/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/oembed-plus/reviews/)

## 參與者

 *   [ Ayesh Karunaratne ](https://profiles.wordpress.org/ayeshrajans/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/oembed-plus/)