Facebook is the largest social network in the world. That’s why some of the top WordPress blogs use Facebook comments instead of the default WordPress comments.
If you are planning to add the Facebook comment system to your WordPress site, then you are in the right place.
In this article, we will show you how to install and setup Facebook comments in WordPress. We will also explain how to display the Facebook comment count on your website.
Pros and Cons of Using Facebook Comments in WordPress
Before we get started with the tutorial, let’s cover the pros and cons of using Facebook comments compared to default WordPress comments.
One of the most obvious benefits is that Facebook comments increase your website’s visibility on Facebook.
When someone leaves a comment on your site, they can check the “Also post on Facebook” option to share their comment with their Facebook friends. This has a huge potential for additional traffic to your website.
Also, spammers will stay away from your website because they won’t receive a SEO backlink by commenting on your posts.
Another benefit of using Facebook comments is that it removes the anonymity factor, so users are less likely to leave spam comments because it’s tied to their Facebook profile.
However, this can act as a major downside as well.
Some users don’t feel comfortable leaving a comment using their Facebook profile because they like the sense of being anonymous.
Another disadvantage of using Facebook comments is that they are not stored or synced to WordPress, whereas third-party commenting systems like Disqus does sync with WordPress.
If you have older posts with default WordPress comments, then those comments may appear before or after the Facebook comments.
However, it is better to remove the WordPress comment system entirely if you are using the Facebook comment system on your site. Otherwise, spammers and bots will use the WordPress comments to spam your website.
Now that you know the pros and cons, let’s take a look at how to install Facebook comments in WordPress.
Video Tutorial
If you don’t like the video or need more instructions, then continue reading.
Setting Up Facebook Comments in WordPress
The easiest way to add Facebook comments in WordPress is by using a WordPress plugin.
We will be using the Lazy FB Comments plugin for the sake of this tutorial. This free plugin not only adds the Facebook comment system to your site, but it also lazy loads the comments to improve page speed.
First, you need to install and activate the Lazy FB Comments plugin. You may follow our guide on how to install a WordPress plugin for detailed instructions.
Upon activation, you need to visit Settings » Lazy FB Comments to configure the plugin.
To use Facebook comments on your website, you will have to create a Facebook app and then add the application ID to the plugin’s settings page.
If you have previously created an app for your site, then you can use that application ID here. Otherwise, you will have to create a new app by going to the Facebook for Developers page.
To get started, you need to register for a Facebook Developer account if you don’t have one. Next, you will have to click on the My Apps link, present at the top-right corner of the page.
A dropdown menu will open up where you need to click on the Create App option. This will open a modal window where you will have to provide your email address and a name for your app.
Once done, you need to click on the Create App ID button. This will open a popup box and will ask you to enter some CAPTCHA letters. Simply fill in the CAPTCHA textbox and then click on the Submit button.
Facebook will now create a new app for you and then redirect you to the app dashboard. You will notice your APP ID displayed there.
Next, you need to tell Facebook how you’d use the App.
Simply click on the Settings » Basic link from the left sidebar, and then click on the + Add Platform button, present at the bottom of the page.
A new popup window would appear on the screen. You need to click on Website to select it as your platform.
This will add a new “Website” section in your app’s settings page where you can enter your website URL.
After saving your settings, you can now copy the APP ID and paste it in the FB Application ID textbox of the plugin’s settings page on your WordPress site.
Once you are done, you need to scroll down and then click on the Save All Changes button to store your settings.
Now you will see a new option to “Moderate Comments” beside the title of this plugin. We will explain how to moderate Facebook comments in the next section.
This plugin also comes with a comprehensive set of options. You can go through the settings to see if there is something that you would like to change.
For example, you can change the Load Comments option to “On Scroll”. This will load the Facebook comment system only when someone reaches the end of the article. This will help you improve page load speed.
Other than that, the default settings should work for most websites.
Now, you can visit any post on your WordPress site to see the Facebook comment system in action.
Moderating the Facebook Comments on Your Website
As the admin of the Facebook app, you will get notifications for new comments when you log in to your Facebook account.
You will also find a link to moderate comments on the plugin’s settings page.
Just like WordPress comments, you can set comment moderation rules on Facebook by clicking on the Settings link. This will open a popup where you need to click on the “Moderation Rules” tab.
From here, you can decide the maximum character limit to be allowed in a comment. You can also set a limit after which the comments will be automatically closed on your posts.
Facebook allows you to add new comment moderators as well. You need to click on the “Moderators” tab and then add the person using the textbox.
Once you are done, you need to click on the Save button to store the settings.
Display the Facebook Comment Count in WordPress
One of the downsides of using the Lazy FB Comments plugin is that it overtakes WordPress comment count functions and outputs a Facebook-branded version of the comment count.
If your theme displays comment count, then this would not look good
If you still want to display the Facebook comment count, then you can do that with the help of a code snippet.
First, you need to connect to your WordPress hosting account using an FTP client and then go to the /wp-content/themes/ folder.
From here you need to open your current theme folder and then locate the single.php file.
Next, you need to right-click on that file and then click on Download.
After that, you should open the single.php file using a plain text editor like Notepad. Once the file is open, look for the code used by your theme to display comment count and carefully replace it with the following code.
<fb:comments-count href="<?php echo get_permalink($post->ID); ?>"></fb:comments-count> Comments
This code snippet will help you to display the Facebook comment count on every post.
Finally, you need to save the file and then upload it back to the current theme folder using FTP.
That’s all! We hope this article helped you install and set up Facebook comments on your WordPress site.
You may also want to check out our guide on how to add Facebook open graph meta data in WordPress or how to get a virtual phone number for your website.
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.
Uchiha says
Im having trouble using this into my wordpress site. Please help me
Nilesh says
Hey, great article and very useful. Can you link the comments to a Facebook post or page?
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
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!
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
sohib sanam says
thanks for share the update about facebok comment
Stelaras says
Do you know how i can change the position that the plugin is placed?
Ahmad Farisi says
Thx … but how to set notification to our facebook account if there is a new comment ?
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
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.
WPBeginner Support says
Default WordPress comments are more SEO friendly in our opinion.
Admin
Pram says
I can’t find the plugin?
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?
anish says
i have a site
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
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?
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?
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?
WPBeginner Support says
Sometimes plugin authors don’t feel the need to update a plugin because there is nothing changed or broken.
Admin
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?
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 .
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.
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
Mithilesh says
Not getting where to upload the plugin.
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
Sara says
I have the same problem. Did you find a solution?
Cynthia Spencer says
I’m hoping it will help out with the user interaction on my site!
vimala says
But that just seemed to take me in a circle, and i never got what I needed.
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.”
WPBeginner Support says
Follow the on screen instructions to create a new app.
Admin
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.
Esref says
Fake content is a big problem
Lisa says
Can I set up the comments to go with my Facebook page, or will it only work on my personal name feed?
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…
Sarik Siddiqui says
How to remove the wp comments after this plugin has been installed
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
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!
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?
Juli Andrada says
Is there a way to recover lost fb comments after theme change?
Thank you ,
Juliana.
Stella Busolo Khachina says
Can it work with WordPress.com?
WPBeginner Support says
No.
Admin
Karolyn says
Hi! I dont know if its a facebook bug, but I installed the pluggin in my blog and it doesnt only shows the box for the comments for my posts but it also shows the bok with all the facebook developers page commets. Please help!!!
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
Sanwal says
Thanks for the help. Its take max 5 minutes to do all these steps. Thanks a lot..
John Lee says
Any way to enable “Also post to Facebook” by default? to it is checked?
Thanks,
John
Richard says
Same problem. I want it checked by default.
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
WPBeginner Support says
Yes unfortunately Facebook comments are not synced with your WordPress.org comments.
Admin
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?
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.
WPBeginner Support says
You will need to choose the option ‘Also post to Facebook’.
Admin
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!
WPBeginner Support says
The plugin was updated last month
Admin
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
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
polisiye says
Hi did you figure out this because I am having the exactly the same issue on my blog
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
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?
WPBeginner Support says
You can use Floating Social Bar plugin for that.
Admin
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.
WPBeginner Support says
Do you see a Create New App button when you visit Facebook Developers website?
Admin
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.
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
WPBeginner Support says
We are using default WordPress comments.
Admin
Patricia says
Just installed the plugin. Thanks for this tip!
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