Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPBカップ
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

WordPressでFacebookコメントをインストール・設定する方法

編集メモ: WPBeginner のパートナーリンクから手数料を得ています。手数料は編集者の意見や評価に影響を与えません。編集プロセスについて詳しく知る。

WordPressにFacebookコメントをインストールして設定したいですか?

Facebookは世界最大のソーシャルネットワークです。そのため、多くのWordPressブログは、ソーシャルメディアプラットフォームでの認知度を高め、より多くのオーディエンスにリーチするために、サイト上でFacebookコメントを使用しています。

この投稿では、WordPressにFacebookコメントを簡単にインストーラし、設定する方法を順を追って紹介します。

How to install and setup Facebook comments in WordPress

WordPressでFacebookコメントを使う利点と欠点

チュートリアルを始める前に、初期設定のWordPressコメントと比較してFacebookコメントを使用することの長所と短所を説明しましょう。

Facebookコメントを使用する最も明白な利点の一つは、Facebook上であなたのサイトの可視性を高める可能性があることです。

誰かがあなたのWordPressサイトにコメントを残すと、そのコメントをFacebookの友達と共有するために「Facebookにも投稿する」オプションをチェックすることができます。これは、あなたのサイトにさらなるトラフィックをもたらす大きな可能性を秘めています。

Facebook comments preview

Facebookコメントを使うもう一つの利点は、匿名性がなくなることだ。そのため、ユーザーはFacebookのプロフィールと結びついているため、スパムコメントを残す可能性が低くなる。

しかし、これは大きなマイナス面にもなり得る。

ユーザーによっては、匿名が好きなのでFacebookのプロフィールを使ってコメントを残すことに抵抗を感じるかもしれません。

Facebookコメントを使用するもう一つの欠点は、WordPressに保存または同期されないことです。対照的に、DisqusのようなサードパーティのコメントシステムはWordPressと同期します

さらに、WordPressの初期設定のコメントで過去の投稿がある場合、それらのコメントはFacebookコメントの前または後に表示されることがあります。

そのため、WordPressブログでFacebookコメントシステムを使用したい場合は、WordPressコメントシステムを完全に削除することをお勧めします。そうしないと、スパマーやボットがWordPressのコメントを使ってあなたのサイトにスパムする可能性があります。

長所と短所がわかったところで、WordPressにFacebookコメントをインストールして設定する方法を見てみましょう:

方法1:無料のプラグインを使用してWordPressでFacebookコメントを設定する

最初の方法を理解するには、この動画を見ることができる。しかし、文章による説明がお好きな方は、下にスクロールしてください。

Subscribe to WPBeginner

まず、Lazy Social Commentsプラグインをインストールして有効化する必要があります。詳しい手順は、WordPressプラグインのインストール方法についての初心者ガイドをご覧ください。

有効化したら、WordPressの管理サイドバーから設定 ” Lazy FB Commentsのページにアクセスしてください。

Visit the plugin settings for Facebook comments

サイト上でFacebookコメントを使用するには、Facebookアプリを作成し、プラグインの設定ページにアプリケーションIDを追加する必要があります。

すでにFacebookアプリを持っているなら、そのIDを使うことができる。

ただし、まだアプリを作成していない場合は、まず開発者向けメタ情報のページにアクセスし、開発者アカウントを作成する必要がある。

注: 開発者アカウントを作成する前に、Facebookアカウントへのログインをお忘れなく。

メタ情報開発者として登録したら、画面右上の「My Apps」リンクをクリックするだけです。

Click on the My Apps link

開発者のダッシュボードが表示されます。

ここから「Create App」ボタンをクリックし、プロセスを開始する。

Click on the Create App button

アプリの作成」ページが表示されるので、アプリのタイプとして「ビジネス」オプションを選択してください。

次に、下部にある「次へ」ボタンをクリックして進みます。

Choose an app type

その後、アプリ名と連絡に使用できるメールアドレスをプロバイダーとして提供する必要があります。

Facebookアプリに関する更新を受け取れるように、定期的にチェックするビジネスメールアドレスを必ず使用してください。

詳細を入力したら、「アプリを作成」ボタンをクリックします。

Provide an app name and email address

Facebookはあなたのために新しいアプリを作成し、アプリのダッシュボードにリダイレクトします。

画面左上にAPP IDが表示されています。

App dashboard

次に、Facebookにアプリの使い方を伝える必要があります。そのためには、左のカラムから設定 ” 基本のリンクに向かいます。

次に、ページ下部の「+プラットフォームの追加」ボタンをクリックする。

Click Add platform button

新しいポップアップウィンドウが開きます。

ここから、プラットフォームとして「サイト」オプションを選択し、「次へ」ボタンをクリックして続行します。

Select Website as the platform

これにより、アプリの設定ページに新しい「サイト」セクションが追加されます。

ここでは、WordPressサイトのURLをコピー&ペーストするだけです。その後、「変更を保存」ボタンをクリックしてください。

Type website URL

次に、APP IDをコピー&ペーストして、WordPressダッシュボードのプラグイン設定ページにある「FB Application ID」ボックスに入力します。

設定が完了したら、下にスクロールして「変更をすべて保存」ボタンをクリックし、設定を保存します。

Type App ID

これで、上部のプラグイン名の横に新しい “Moderate Comments “タブが表示されます。次のセクションでFacebookコメントをモデレートする方法を説明します。

このプラグインには包括的なオプション設定も用意されている。何か変更したいことがあるかどうか、設定に目を通してみてください。

例えば、Load Commentsオプションを’On Scroll’に変更することができます。この設定により、誰かが投稿の最後に到達した時のみFacebookコメントシステムを読み込みます。これにより、ページの読み込み速度を向上させることができます。

Choose the option of loading comments on scroll from the dropdown menu

それ以外は、初期設定でほとんどのサイトに対応できるはずだ。

これで、WordPressサイトのどの投稿日: でも、Facebookコメントシステムが動作しているのを見ることができます。

Facebook comments preview

サイト上のFacebookコメントをモデレートする

Facebookアプリの管理者として、Facebookアカウントにログインすると、新しいコメントが通知されます。

また、WordPressダッシュボードのプラグイン設定ページに、コメントをモデレートするためのリンクがあります。

Click on the Moderate Comments link

リンクをクリックすると、「コメントモデレーションツール」のページに移動します。

ここから「設定」リンクをクリックし、コメントするFacebookのモデレーション・ルールを設定する。

Click on the Settings link

ポップアップが開きますので、「モデレーション・ルール」タブをクリックしてください。

コメントする文字数の上限を設定することができます。また、投稿日:後に自動的にコメントする日数を設定することもできます。

Use the moderation tool

Facebookでは、コメントするモデレーターを追加することもできます。

モデレーター」タブをクリックし、名前をテキストボックスに入力してプロフィールをクリックするだけです。

Add comment moderators

設定が完了したら、「保存」ボタンをクリックして設定を適用します。

WordPressでFacebookのコメント数を表示する方法

Lazy Social Commentsプラグインを使うことの欠点の一つは、WordPressのコメントカウント機能を追い越してしまうことです。そうすることで、コメントカウントのFacebookブランドバージョンを出力します。

もしあなたのテーマがコメント数を表示するのであれば、これは見栄えが良くない。

それでもFacebookのコメント数を表示したい場合は、コード・スニペットの助けを借りてこれを行うことができる。

しかし、テーマファイルの編集中に小さなエラーを起こすと、サイトが壊れてしまう可能性があることを覚えておいてください。

あなたのサイトにコードを追加するには、WPCodeを使用することをお勧めします。WPCodeは、カスタマイザーコードを安全に追加できる、市場で最も優れたコードスニペットプラグインです。

まず、WPCode プラグインをインストールし、有効化する必要があります。詳しくは、WordPressプラグインのインストール方法の初心者ガイドをご覧ください。

注: このチュートリアルでは、無料のWPCodeプラグインを使用することができます。しかし、コードスニペットのクラウドライブラリや条件ロジックなど、より多くの機能をアンロックするには、プラグインのプレミアムプランが必要です。

プラグインを有効化したら、管理サイドバーからCode Snippets ” + Add Snippetページにアクセスします。

ここから、「カスタムコードを追加する(新規スニペット)」設定の下にある「スニペットを使用する」ボタンをクリックします。

Add new snippet

カスタム・スニペットの作成」ページに移動したら、コード・スニペットの名前を入力します。

次に、画面右側のドロップダウンメニューから「コードタイプ」として「HTMLスニペット」を選択します。

Choose HTML as the code type for the Facebook Comments count code snippet

その後、以下のコードをコピー&ペーストして「コード・プレビュー」ボックスに入れてください:

<fb:comments-count href="<?php echo get_permalink($post->ID); ?>"></fb:comments-count> Comments

次に、「インサーター」セクションまでスクロールダウンする必要がある。

ここから、挿入方法として「Auto Insert」を選択し、サイト上でコードが自動的に実行されるようにします。

Choose an insertion method

その後、コード・スニペットの場所を選択しなければならない。

挿入場所はドロップダウンメニューから「コンテンツの後に挿入」を選択するだけです。

Choose a code snippet location

次に、ページのトップに戻り、「非活性化」スイッチを「有効化」に切り替える。

最後に「Save Snippet」ボタンをクリックして、設定を保存します。

Save and activate the Facebook Comment Count snippet

Facebookのコメント数が投稿日ごとに表示されるようになりました。

Facebook comment count preview

方法2:SeedProdを使ってFacebookコメントを設定する(簡単)

Facebookコメントを簡単に設定する方法をお探しなら、この方法がおすすめです。

私たちは、市場で最高のWordPressページビルダープラグインであるSeedProd プラグインを使用します。このプラグインを使えば、コードを一切使わずにゼロからテーマやランディングページを作成することができます。

まず、SeedProd プラグインをインストールし、有効化する必要があります。詳しい手順については、WordPressプラグインのインストール方法のステップバイステップガイドをご覧ください。

注:SeedProdには無料版もあり、試すことができます。しかし、このチュートリアルではプレミアム版のプラグインを使用します。

有効化した後、管理サイドバーからSeedProd ” 設定ページにアクセスし、ライセンスキーを入力してください。

この情報は、SeedProdサイトのアカウントで確認できます。

Paste license key in the field

次に、WordPressの管理サイドバーからSeedProd ” ランディングページセクションに移動し、「新規ランディングページを追加」ボタンをクリックします。

このチュートリアルでは、ランディングページにFacebookコメントを追加します。お望みであれば、SeedProdを使ってあなたのサイトに全く新しいテーマをカスタマイズすることもできます。

Click the Add New Landing Page button

新規テンプレートの選択」画面が表示されます。ここでは、SeedProdが提供する多くの既成テンプレートの中から1つを選ぶか、独自のテンプレートを作成することができます。

ページ名を入力し、URLを選択します。保存してページの編集を開始する」ボタンをクリックしてください。

Landing page title and URL

これでSeedProdドラッグ&ドロップページビルダーが起動し、ページの編集を開始することができます。詳細については、WordPressでランディングページを作成する方法のガイドをご覧ください。

ここから、検索バーで「Facebookコメントする」ブロックを検索する必要がある。

見つけたら、「Facebookコメント」ブロックをページ上の好きな場所にドラッグ&ドロップすることができる。

Choose the Facebook comments block

次に、画面上の「Facebookコメントする」ブロックをダブルクリックして、左カラムの設定を開きます。

ここから、表示するFacebookコメントの数、順番、配色、ターゲットURL、URLフォーマットなどを決めることができる。

Lazy Loading’トグルを’Yes’に切り替えることで、コメントを遅延ロードすることもできます。

Configure the Facebook Comments block Settings

次に、画面左上の「ページ設定」リンクをクリックする。

次に、「FacebookアプリID」オプションまでスクロールダウンし、FacebookアプリIDを入力します。

Enter the Facebook App ID in SeedProd

完了したら、上部にある「保存」ボタンをクリックするだけです。

WordPressサイトにFacebookのコメントが表示されるようになります。

Facebook Comments preview with SeedProd

ボーナス:WordPressの投稿にFacebookの「いいね!」リアクションを追加する

Facebookコメントを追加する以外に、WordPressブログの投稿にFacebookのようなリアクションを追加することもできます。これらのリアクションは、訪問者がブログ投稿について意見を表明するために使用できる絵文字のセットです。

そうすることで、ブログがより面白くなり、エンゲージメントを高めることができる。

Facebook Lets Users React to Posts With the Like Button

これらのリアクションを追加するには、WP Reactions Liteプラグインをインストールして有効化する必要があります。詳しくはWordPressプラグインのインストール方法をご覧ください。

有効化したら、WP Reactions ” Global Activationのページにアクセスし、’Customize Now’ボタンをクリックします。リアクションに追加したい絵文字を選択する画面が表示されます。

Choose emojis

次に、「次へ」ボタンをクリックして先に進みます。ここでは、リアクションの配置を「投稿」と「コンテンツの後」から選択することができます。

そうすれば、ユーザーはあなたの記事を読み終えた後、Facebookのようなリアクションを追加したり、Facebookコメントを投稿したりすることができる。

Select emoji placement

プラグインでCTA、フォントカラー、枠線のスタイルを追加することもできます。設定が完了したら、’Save and Exit’ボタンをクリックして設定を保存することをお忘れなく。

これでFacebookのようなリアクションの追加は完了です。詳しくは、WordPressの投稿にFacebookのようなリアクションを追加する方法のチュートリアルをご覧ください。

Facebook like reactions preview

この投稿がWordPressサイトにFacebookコメントをインストールし、設定するのにお役に立てば幸いです。WordPressでカスタムFacebookフィードを作成する方法や、サイトを成長させる最高のSEOプラグインのトップピックもご覧ください。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 WPBeginnerの資金源 をご覧ください。3$編集プロセスをご覧ください。

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

究極のWordPressツールキット

ツールキットへの無料アクセス - すべてのプロフェッショナルが持つべきWordPress関連製品とリソースのコレクション!

Reader Interactions

113件のコメント返信を残す

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

    • WPBeginner Support says

      It would require some work but you could certainly style your comment section to look similar to Facebook’s

      管理者

  2. David says

    Hi,

    I set it up according to this article. Comments work, but I can’t see the comments in moderation. Every column including “public” is empty. How can I delete published comments for example?

    Thank you

    David

    • WPBeginner Support says

      You would want to go into the plugin’s settings for the link to your comment moderation.

      管理者

  3. Samantha Collier says

    Thank you for these instructions. I’ve tried to install Facebook comments for a long time and this is the first time it’s worked.

  4. Lisa Marie says

    Thanks so much for this! Your site is incredibly helpful! I appreciate what you all do sooooooooo much!!!!!

  5. Daniel says

    Thanks. The plugin is very useful indeed.
    It seems that the Plugin has changed its name to “Lazy Social Comments”, and is being supported by other people.

  6. Joseph Parker says

    As per my personal experience, Facebook Comment is one of the best ways to increase your visitors to comment on a post or interact with existing comments.

    • WPBeginner Support says

      If the plugin is having an error, if you reach out to the plugin’s support they should be able to assist :)

      管理者

    • WPBeginner Support says

      Thank you for letting us know, we will certainly take a look into updating the article.

      管理者

    • WPBeginner Support says

      Thank you for letting us know, we will certainly take a look into alternatives for Facebook Comments

      管理者

  7. Prashanth says

    Was able to add the facebook comments plugin successfully. But, the default wordpress comments section is also showing below. How do I remove it?

  8. Rajendra Zore says

    You may want to update this article as the plugin author of Facebook Comments has stopped supporting it & prompting to switch to the Spot.IM Comments plugin instead.

  9. Raj says

    Dear Wpbeginner. Nice article. Installed FB comments. everything working fine. Is there any waty to enable “Also post on Facebook” selecxt box?

  10. Hosana says

    You need to review this article! The plugin you’re referring to is no longer being updated and is days away from breaking (when the older FB API will be deactivated). The developer started up spot.im which I guess he’ll have his hands full with.

    Also I don’t really see any other good plugins for this, they all have a small install base, unsolved issues to which they aren’t responding, no proven compatability with latest wp version, …

  11. sam says

    how to mirror the facebook comment on facebook page with facebook comment on wordpress blogpost and vice versa?

  12. Jenn says

    Thanks, this article was very helpful! I followed your instructions, and everything appears to be working on my site.

  13. Patrice says

    The facebook comments plug in is working on my site however I still see the wordpress comments. How do I remove the wordpress comments?

    • David chriss says

      Hi Patrice,

      You Can Disable Default WordPress Comment By Using This Plugin Disable Comments

      Details:- Requires: 4.0 or higher
      Compatible up to: 4.6.1
      Last Updated: 2 months ago
      Active Installs: 900,000+

      If you have another Question Feel Free To Reply To This Email
      Or You Can Read This WP Beginner Article https://www.wpbeginner.com/plugins/how-to-turn-off-or-disable-comments-in-wordpress-pages/

      I Hope I Help Some One Today :-)

      Best Regards,
      David Chriss

      • Charne Cronje says

        Hi David, Hope you are well, Has this plug in for facebook comments been updated for the new wordpress 4.7.2? And perhaps you might also know of a pinterest plugin that doesnt just show the pictures but also the description below, which works with the latest version of WordPress.

        Thank you

        Charne
        xx

  14. Sara says

    Hi. I want to know if it’s possible to make the comments on my fanpage’s articles appear directly on my website’s articles and vice versa. Thanks!

  15. Zaharadeen Elfakkawy says

    Anytime someone tried to comment they get ‘message failed’ error. Pls what’s the solution for thia

    • David chriss says

      Hi,

      Even me I Have That Common problem Please WP Beginner Help Us Or Any One can Help Us Please.

      Please Help Us

    • Amit Jain says

      Dear Team, What is the name of social share plugin you are using as i wish to install the same. It looks quite simple and sober. Regards, Amit Jain

  16. Mahdi says

    Hi Everyone, I was looking for a plugin who’s importing my facebook old comment from my facebook fanpage to my wordpress.

    I tried this one but it’s not working, can anyone tell me how it works ?

    I used another methode by commenting the embed comment and looks not really fine

  17. Justin Enjo says

    Hi WPBeginner – Quick question about Facebook Comments… How does it effect your SEO? Is it better to keep default WordPress comments or maybe Jetpack comments so that the comment content stays attached to your blog rather than fb? thanks.

  18. Aman says

    This plugin is installed on my site and I have also activated coments mirroring for my page but still comment mirroring is not happening?

    Do you know the way around to do this?

  19. Daniela says

    Hello very well explained!! But I have a problem! The comments should show also on my fan page write? …..
    ……I did everything and I get my comments on my wordpress but not SHOWING on my facebook page why?? Help !!!!!! Thanks a lot. Daniela

  20. Vikagutt says

    I can’t get the plugin to work in Internet explorer. I can see from other threads on the net that others have the same experience. Some say that header.php should be modified, but I can’t figure out where in the file.
    What to do?

  21. Tabetha says

    I set up this plugin with a test app. Right before I was due to launch the website, I had to switch over to the new app that was set up for the business the website was built for. When I changed the app ID to the new app, all of the comments kept going to the old app I set up for testing purposes. Even after I deleted the old app, deleted and reinstalled the plugin and verified that the correct app ID was being used in the api call.

    Now, I have no way to moderate the comments because that old app is deleted and all the new comments are going to that old app even though the app ID I have in the plugin settings is for the new app ID.

    Any ideas?

  22. Steve says

    ..that facebook plugin is not updated since 11 months. Moreover, the plugin is made by some developer, and not Facebook. It does not feel very safe to use that plugin. Do you have any alternatives?

  23. Rizwan says

    Hi.. When i hyperlink another post from my wordpress blog to new post. All hyper links get shown below with ping back option. I don’t want them to show. Any advice?

  24. mahendra says

    great post !!! i have been searching for how to install facebook comments to my site. now i am going to use it on my site
    thank you alot .

  25. Paolo Euvrard says

    ok, that’s all fine, I’ll switch to that from now on.

    In order to disable the WordPress comments:
    Settings >> Discussion >> uncheck “Allow people to post comments on new articles”

    This applies to new posts that you will publish from now on.

    To disallow comments from already publish posts:

    Posts >> select them all and “Edit” under bulk actions and hit apply >> choose “do not allow” next to comments and hit update posts.

  26. Autarka says

    hey guys,

    regarding to your plugin issues…

    you need ipv6 addresses… without switching from ipv4 to ipv6 it isn´t working…

    kindly, autarka

  27. nacontact says

    Hey, nice article, but I have some questions.

    This blog here:
    When you comment his facebook publication, it’s automatically commenting his blog, keeping the theme of the blog. When he comments his blog, it’s automatically commenting the facebook thread.
    Any idea on how to do that?

    Cheers,

    • Ramon says

      Hello,
      I would like exactly the same! Can’t find how to. Did you find the answer to this and would you want to enlighten me? What I’ve been Googling so far is things like:
      “auto publish to facebook grab retrieve comments”

      Thank you so much!
      Greetings

  28. Kenneth Adair says

    There is NO Create App ID button here:

    “Simply visit the Facebook Apps page and click on the create new app button. You will need to provide a name for your app and click on the Create App ID button.”

  29. Mark says

    I just set it up and It’s pulling in 1200+ comments, but I’ve only just created my FB page and I have not comments on it yet. The stuff is from all over the place. How do I get it to just show my FB page’s comments

    • Rob says

      I have exactly the same problem and will remove these coments now as it looks so fake. Anyone can see it is not genuine. What a disappointment! There are no instructions either about this, as far as I can see.

返信を残す

コメントありがとうございます。すべてのコメントは私たちのコメントポリシーに従ってモデレートされ、あなたのメールアドレスが公開されることはありませんのでご留意ください。名前欄にキーワードを使用しないでください。個人的で有意義な会話をしましょう。