≡ Menu

Add Facebook Comments Form In WordPress Blog

Facebook has a very useful social plugin which is used  to add a facebook comment form in a wordpress blog. The process is very simple, but you need to understand a few things before adding facebook comment form in your blog.

You will have to remove the default comment form from your blog. Which will also remove all the comments made on your blog. Although it will be available in the database, but will not appear in the posts where it was posted. You can always display the default form after adding a php code [Details in Step.3]

Only new bloggers can add facebook comment form from the beginning, however you can also add in your existing blog.

How to Add Facebook Comments Form?

1. Login to your facebook account and go to Create an App link.

create facebook app

Enter your blog Title, URL and select language. Click on “Create app” button and then pass the spam authentication.

On the next page you will get App ID for your blog. Copy the App ID, as we will be using the ID in the next step.

2. Now go to the Comments Form Page.

Paste the App ID in the box “Unique ID” and click on the “Get Code” button. Copy the code and add it your blog.

You must first remove the default comment form from your wordpress blog to display Facebook Comment form.

How to Delete Default Comment Form form WordPress?

3. Open single.php file

Find the below code in the file and delete it.

<?php comments_template(); ?>

4. Save the file.

Now paste the facebook comment form code (step.2) in your blog to display the new form.


Hope you like the tutorial, let me know if you have any problem while adding the form.

{ 12 comments… add one }
  • Avilash

    September 17, 2011, 5:44 am

    Facebook commenting is a backlink strategy , which they are using it to there benefit. Usie analytic tools to find out for yourself

  • Lalit Indoria

    August 15, 2011, 8:50 am

    I do not find any ‘Unique ID’ box in the comments form page. Has there been any changes?

  • Oli

    April 11, 2011, 9:48 pm

    Is it possible to set the facebook comment box to email you whenever a comment has been left?

  • Dwad

    March 8, 2011, 4:09 pm

    Looks super simple, thanks for the easy tutorial! =)

    Does it HAVE to replace the usual WP comments? i.e. can’t you have both? I use to see that. As you said, it’s fine for new blogs.

    I think this can be a bad thing, as some people may want to comment, but anonymously. Plus, from an SEO point of view, Google sees a blog with lots of comments as “popular”. Will Google be able to “see” the FB comments?

    • Bilal Ahmad

      March 8, 2011, 4:17 pm

      Dwad@ Yes you can add both and i agree that by adding facebook comment form those who want to comment anonymously will not be able to comment. + the seo benefits for commenter will also not available.

  • burhan

    March 2, 2011, 6:04 pm

    Nice. But where to put Comment’s Code in Wordpress Template???

    • Bilal Ahmad

      March 2, 2011, 10:38 pm

      Burhan@ Add the code in Single.php (From you remove the Default Comment Box Code)

  • raybak

    March 1, 2011, 11:18 am

    Oh so if it only works for new blogs then I might kick my thoughts of implementing it on my existing blog. By the way after implementing it only users with facebook ID can post comments right?

    • Bilal Ahmad

      March 1, 2011, 7:46 pm

      Raybak@ Exactly users will only be able to post comments when they are login to facebook account.

  • Harsh Agrawal

    February 27, 2011, 8:38 am

    Nice tutorial..Wondering why you haven’t integrated it on your blog??

    • Bilal Ahmad

      February 28, 2011, 5:28 pm

      Harsh@ Actually the problem is that after adding facebook comment form all the previous comments will get deleted and that is what i don’t want to..

      This is only effective for new blogs. New bloggers can add the form from the beginning to allow readers to post comments through facebook.

  • Renji

    February 21, 2011, 11:31 am

    Would have been great if it saved comments on WordPress too..


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.