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 | 22974 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 (http://yourwebsite.com/xd_receiver.htm)

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

HTML Code:
<?php
xmlns:fb=”http://www.facebook.com/2008/fbml”;
?>
4. In the page you want to display the comments, (in Wordpress is single.php), add this code:

HTML Code:
<script src=
“http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php”
type=”text/javascript”></script>

<fb:comments></fb:comments>

<script type=”text/javascript”>
FB.init(”YOUR_API_KEY_HERE”, “<path from web root>/xd_receiver.htm”);
</script>
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?

Thanks!

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

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