Title: Facebook
Author: Akira Tachibana
Published: 2021年6月4日
Last modified: 2024年10月9日

---

## カテゴリー

 * [はじめに](https://ja.wordpress.org/support/category/getting-started/)
 * [インストール](https://ja.wordpress.org/support/category/installation/)
 * [基本的な使い方](https://ja.wordpress.org/support/category/basic-usage/)
 * [基本的な管理](https://ja.wordpress.org/support/category/basic-administration/)
 * [カスタマイズ](https://ja.wordpress.org/support/category/customizing/)
 * [メンテナンス](https://ja.wordpress.org/support/category/maintenance/)
 * [セキュリティ](https://ja.wordpress.org/support/category/security/)
 * [高度なトピック](https://ja.wordpress.org/support/category/advanced-topics/)
 * [トラブルシューティング](https://ja.wordpress.org/support/category/troubleshooting/)

## 翻訳・改善にご協力ください

 ドキュメンテーションを現在[英語版](https://wordpress.org/support/)から翻訳中です。
どなたでも[ご協力いただけます](https://ja.wordpress.org/team/2019/08/06/359/)。

 誤字や間違った情報にお気づきの方は、各記事の下にあるフィードバックセクションから
お知らせください。

# Facebook

[**ブロック**一覧へ戻る](https://ja.wordpress.org/support/article/blocks/)

Facebook リンクの埋め込みは、 Facebook 社が oEmbed エンドポイントを廃止する決定を
したことにより、2020年10月24日以降は動作しません。Facebook のリンクをサイトに埋め
込みたい場合、エンドポイントへのアクセスにはデベロッパーアカウントと appid の取得、
認証トークンの送信が必要です。Facebook ドキュメント: [App Development](https://developers.facebook.com/docs/apps/)

Facebook 社のこのポリシー変更について WordPress 側から連絡を取りましたが、再考さ
れることはありませんでした。WordPress 貢献者はこのページ等でユーザーに注意喚起する
こと以外、何もできません。

---

With the Facebook Embed block you can add a Facebook post to your post or pages.
The post needs to be a _public_ post.

![](https://wordpress.org/support/files/2020/04/Screen-Shot-2020-04-20-at-9.24.35-
AM.png)

Besides Facebook Posts, you can also share links to Facebook Photos, Facebook Albums,
and Facebook Videos.

You can not embed: Facebook pages, Facebook events, and Facebook groups

**Embedded Facebook Video**

**Eight steps to embed a public Facebook post.**

 1. **Where to find the relevant link? **
 2. **Facebook adds a single link url to the date section of a post. **
 3. **Copy the Link Address to your clipboard**

![](https://wordpress.org/support/files/2020/04/Screen-Shot-2020-04-20-at-9.10.17-
AM.png)

 4. **Go to your post **
 5. **Add the Facebook Embed block **

![](https://wordpress.org/support/files/2020/04/Screen-Shot-2020-04-20-at-9.09.27-
AM.png)

Shows how to add a Facebook embed block via the “slash” command

_ブロック追加の詳しい方法は[こちら](https://ja.wordpress.org/support/article/adding-a-new-block/)
をご覧ください。_

 6. **Paste the link from your clipboard into the “Enter URL to embed here” field. **

![](https://i1.wp.com/wordpress.org/support/files/2020/04/Screen-Shot-2020-04-20-
at-9.09.38-AM.png?fit=1024%2C360&ssl=1)

 7. **In your editor, you see the link and the comment “Embedded content from facebook.
    com can’t be previewed in the editor”**.

![](https://i1.wp.com/wordpress.org/support/files/2020/04/Screen-Shot-2020-04-20-
at-9.10.50-AM.png?fit=1024%2C690&ssl=1)

 8. **Use the “Preview” button to see how the post fits into your post/page **

![](https://wordpress.org/support/files/2020/04/Screen-Shot-2020-04-20-at-9.11.11-
AM.png)

## Block Toolbar

Besides the Mover and Drag & Drop Handle, the Block Toolbar for the Facebook embed
shows four buttons:

 * Transform to
 * Change alignment
 * Edit URL, and
 * More Options.

![](https://wordpress.org/support/files/2020/04/Screen-Shot-2020-04-20-at-10.00.44-
AM.png)

**Transform to**:

![](https://wordpress.org/support/files/2020/04/Screen-Shot-2020-04-20-at-10.02.44-
AM.png)

You can transform a Facebook embed to a Group. This would give you the ability to
change the background color around the Facebook embed.

![](https://i0.wp.com/wordpress.org/support/files/2020/04/Screen-Shot-2020-04-20-
at-10.05.30-AM-1.png?fit=1024%2C613&ssl=1)

![](https://wordpress.org/support/files/2020/04/Screen-Shot-2020-04-20-at-10.06.23-
AM.png)

Left: Editor view of an Facebook Embed as a group with Color Settings controls
Right:
Facebook embed with a black background.

**Change Alignment**

![](https://wordpress.org/support/files/2020/04/Screen-Shot-2020-04-20-at-9.26.59-
AM.png)

 * **Align left** – Make the Facebook post left aligned
 * **Align center** – Make the Facebook post alignment centered
 * **Align right **– Make the Facebook post align right
 * **Wide width** – Increase the width of the post beyond the content size
 * **Full width** – Extend the facebook post to cover the full width of the screen.

**Note:** _“Wide width” and “Full width” alignment need to be enabled by the Theme
of your site._

**Edit URL**

Via the edit URL, you can change the Facebook Embed URL in the embed block. Overwrite
the existing URL and click on the “Embed” Button on the right.

![](https://wordpress.org/support/files/2020/04/Screen-Shot-2020-04-20-at-10.11.49-
AM.png)

**More Options:**

![](https://wordpress.org/support/files/2020/08/Screenshot-1.png)

**Hide Block Settings**

The _Hide Block Settings _option hides (or shows) the Block Setting panel in the
editor’s sidebar.

**Copy**

_Copy_ can be used to copy a selected block and then you can paste it wherever you
want in the editor.

**Duplicate**

_Duplicate_ can be used to duplicate selected block.

**Insert Before**

Insert a new block before the selected block(s).

**Insert After**

Insert a new block after the selected block(s).

**Move To**

If you select _Move To_, you will get a blue line inside your content, you can then
use the arrows to move that line up and down to where you want the selected content
to be moved into, hitting return on your keyboard at that point moves the block 
to that position.

**Edit as HTML**

The _Edit as HTML_ option allows you to modify the HTML code of the embed block.

![](https://wordpress.org/support/files/2020/04/Screen-Shot-2020-04-20-at-9.44.58-
AM.png)

**Add to Reusable blocks**

Using the _Add to Reusable blocks_ option lets you add the selected block to a list
of reusable blocks, so you can use them on other posts or pages as well.

**Group**

Select the _Group_ option if you want to create a group of blocks and treat them
as a unit. You can for instance add a common background color or other blocks to
the group.

**Remove Block**

With the _Remove Block _option, you can delete the selected block from your content.

## Block Settings

Besides the Advanced section, the Facebook embed has only one setting in the “Block
Settings” sidebar: Media Settings.

**Media Settings**

![](https://wordpress.org/support/files/2020/04/Screen-Shot-2020-04-20-at-9.29.46-
AM.png)

![](https://wordpress.org/support/files/2020/04/Screen-Shot-2020-04-20-at-9.29.55-
AM.png)

Via the _Media Settings_ you can control the behavior of your post embed when viewed
from a smaller device, like on a phone screen.

The Toggle switch turns on or off the resize functionality for smaller devices. 
The default setting is “on” or blue.

**“Off:”** This embed may not preserve its aspect ratio when the browser is resized.
In the off position the toggle switch is gray.

**“On:”** This embed will preserve its aspect ratio when the browser is resized.
The toggle switch turns blue in the “On” position.

**Advanced**

The advanced tab lets you add a CSS class to your block, allowing you to write custom
CSS and style the block as you see fit.

[⌊The advanced section lets you add a CSS class to your block.⌉⌊The advanced section
lets you add a CSS class to your block.⌉[

The advanced section lets you add a CSS class to your block.

#### **Changelog **

 * Updated 2020-09-21
    - Announcement of discontinuation of Facebook block in v. 9.0 and WordPress 
      5.6
 * Updated 2020-08-18
    - Replaced “More Options” – new screenshot
    - Added “Move To” and “Copy” section under More Options
 * Updated 2020-04-21
    - Add sentence to the Alignment about Theme support for wide width and full 
      width options.
 * Created 2020-04-20

[原文](https://wordpress.org/documentation/article/facebook-embed/)

## この記事は役に立ちましたか ? どうすればさらに改善できますか ?

フィードバックを送信するには[ログイン](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fja.wordpress.org%2Fsupport%2Farticle%2Ffacebook-embed%2F&locale=ja)
する必要があります。