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!

  2. 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

  3. 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!

  4. 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

  5. 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

  6. 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.

  7. 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?

  8. 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

  9. 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?

  10. 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?

  11. 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?

  12. 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?

  13. 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 .

  14. 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.

  15. 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

  16. 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

  17. 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.”

  18. 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.

  19. Kanon Clifford says

    How do you get rid of the default WordPress comments after the Facebook comments is installed? I have both showing up on my website…

  20. Sree says

    I installed the plugin : i see the FB comments in edge but not always on chrome. some posts it appear some it does not.
    second, even if i some one posts a comment on the webpost, it dont appear in FB and vice versa, the comment if posted on website, willbe visible there and not fb. and fb comments will be there , but not on website,
    third i included the meta moderation tag with app id in header, but still icant see any moderation tool.
    can u please help

  21. Mike Bateman says

    “Let’s have a personal and meaningful conversation.” That’s cute. Anyway, I went to a blog that had FB comments installed, and when I scrolled down to comments, there was my FB profile staring out at me. Automatically. I had never been to that blog before – had never even heard of it.

    I don’t want that. I don’t want it at any time, in any place, ever. So how do I stop it short of dumping facebook, which is starting to look like a good idea?

    • Michaele says

      Mike,

      If you don’t want to see your FB profile staring at you in the comments area of websites, you need to be logged out of FB while surfing the net.

      Simple solution!

  22. Alejandro says

    Hi, the moderation tool doesn’t appear for me. I tried adding me as a moderator but it doesn’t work.

    Can you help me please?

  23. Stefan Badita says

    It is not working on my blog :( i followed the steps, and on my section of comments and setting is not shown FACEBOOK

  24. Flavia says

    Hi, this was very helpful, but there’s one thing – I don’t get any notification about the comments, I didn’t receive a message on facebook or wordpress or email.
    Do I have to change something in the settings? I didn’t find anything.

    Thanks,
    Flavia

    • Michaele says

      Flavia,

      I have the same problem. I have added myself as a moderator for comments under settings in developer tools. Yet I never receive any notifications for comments left on sites I moderate.

      It seems that Facebook expects us to click on every single post on every site we moderate, every day to check if there is a comment to moderate. Hugely frustrating!

    • Clave Jones says

      Same problem here. I don’t receive notifications anywhere of new comments. Surely I’m not expected to click around to every post, hoping to discover where new comments appear. Any guidance?

  25. christina says

    i followed all the directions and i can post via facebook on my blog, but it doesnt show my comment on facebook. Isn’t it supposed to post my comment to facebook as well or have i misunderstood something.

  26. Nancie says

    Thanks very much for this tutorial

    I just have one question. It appears that the plugin has not been updated for four years. Could I run into compatibility problems with my theme?

    Thank you!

  27. Pranish Shrestha says

    I activated facebook comments, but my post show option for both wp default comment and fb comment box. how to completely deactivate wp defalut comment and show only fb commnt box.
    Help plz.
    Thanks

  28. Kelly Scott says

    Hey @Syed Balkhi,
    Is it possible to install Facebook comments without plugin? I past comment code after related post but the same comments showing in all articles :(
    You can check the result at

    Can i do without plugins?
    Thanks

  29. Fiona says

    Hi again,

    Can comments be hidden? I’m concerned that, if a lot of comments are posted (I wish, and I don’t want to limit to 5), that the plethora will clutter the page!

    Thanks again,

    Fiona

  30. Doug says

    I notice that this article, like most, has a “share this article” feature. Is this possible to add to my Word Press blog site so users can share it on social media?

  31. Barbara Hernandez says

    I hope you can help me.

    I’m In the process of installing the Facebook comments plug-in to my wp website. It is asking me to put an APP ID how do I go about getting this – I tried going through – But that just seemed to take me in a circle, and i never got what I needed. Is there some other way to get this information for the setup phase.

  32. Indigo says

    I did this, but the comments only show from “post on Facebook” to me, because my app is listed as “in development.” It wants me to submit the app for review, even though I have no real app, just trying to use this plug in. How are people getting past this? So long as in development, no one but people in app roles can see anything posted to Facebook by the app. Thanks in advance for your help.

  33. Joseph says

    Hi… I guest the comment notifications doesn’t show up by default.

    By the way, is this the recommend Facebook comment plugin? Any other alternative that you recommend?

    I notice that WPBeginner doesn’t use Disqus any more. Just curious what comment plugin are you using now and why? :-)

    Regards,
    Joseph

  34. Munir Kamal says

    How to port facebook comment to new domain if a website is transferred to a new domain?
    Is it possible?

    Thanks,
    Munir

返信を残す

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