How do I add Facebook comments to my website or blog?

I've seen a few blogs and websites that implemented a Facebook widget in the comments section.
I would like my readers to be able to comment on my blog by using their Facebook account, or as anonymous by typing their name and email address. The service is like Intense Debate or Disqus, but provided by Facebook.
If you know, please let me know what is the HTML code I need to implement on my blog to get it working.

asked by Steve in Internet | 25137 views | 06-25-2009 at 06:56 PM

You are referring to the Facebook Comment box.
The Facebook Comment system is great tool and the best part is that the readers of your website or blog will have the option to display their comments in their Facebook news feed, so you'll be reaching all their friends too.

To get it working on your blog, follow these steps.

1. First you need to get an API key from the Facebook Developers website by creating an Application.

2. Download the cross-domain receiver file from Facebook and upload it to the root of your site (

3. Open your index.php file with a text editor and add:

HTML Code:
4. In the page you want to display the comments, (in Wordpress is single.php), add this code:

HTML Code:
<script src=


<script type=”text/javascript”>
FB.init(”YOUR_API_KEY_HERE”, “<path from web root>/xd_receiver.htm”);
Remember to replace the YOUR_API_KEY_HERE with the one from the Application you created in step 1.

Make sure to remove your current comment template, or you'll get both comment systems working.

Replace the “path from web root” to your own.

5. That's it. Now you have Facebook comments in your website.

answered by Fernando | 06-25-2009 at 07:11 PM

add facebook comment to my homepage
Will they give me the API key...How do i contact the facebook developer?

answered by Asp | 07-10-2009 at 07:26 PM

Classic ASP
and what about Classic ASP... i can see in the code that it uses PHP... is there something for old ASP?


answered by Guest | 09-28-2010 at 05:01 AM

Thread Tools
vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.