Facebook Comment Box

Jun 27, 2010 at 5:16 AM

I have the FDT implemented with my site.  All social plugins are working nicely except for the Comment Box.


There is a notice that says "XFBML requires you use the JavaScript SDK".  Does the FDT not give me, in essence, use of the JavaScript SDK?  Is there a different way I should be implementing?

Thanks much!


Jun 27, 2010 at 5:28 AM

I even tried loading the controls from the Facebook.Web dll and dragging the Comments control onto my page.  I get a ref up top:

<%@ Register assembly="Facebook.Web" namespace="Facebook.Web.FbmlControls" tagprefix="cc2" %>

and the control is represented with the following:

<cc2:Comments ID="fbComments1" runat="server" NumTopics="10" Xid="http://www.mysite.com" /> 

Still no joy.  No error, just no Comments Box rendered on the page.

Any help will be much appreciated!


Jun 28, 2010 at 3:54 AM

Anybody else using the Comments Box successfully?

Jun 28, 2010 at 5:43 PM

All of the other social plugins that I am using are <iframe>.  I have the FB Connect stuff going and it works in conjunction with the <iframe> plug ins.  This is the first XFBML control I have tried to use.  I have scoured the internet but all other mentions seem to be people using the Javascript SDK versus the FDT.  Anybody have any guidance?

Jun 28, 2010 at 8:00 PM
Works just fine. Do you have xmlns:fb="http://www.facebook.com/2008/fbml" in your head tag?
Jun 28, 2010 at 8:47 PM

No I do not...  On my master page I have the following just before the closing BODY tag

<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<script type="text/javascript">
    FB.init("APP ID", "xd_receiver.htm");

Could you show me an example of what my header tag should look like?


Jun 29, 2010 at 8:37 PM
Edited Jun 29, 2010 at 8:40 PM
You have to use xmlns:fb="http://www.facebook.com/2008/fbml" in order to use fb: like tags. On my master page i have <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> <head> <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"> </script> </head> <body> ... <fb:comments numposts="4" title="My Blog Comments" simple="1"></fb:comments> ... <script type="text/javascript"> FB.init([MY KEY], "xd_receiver.htm"); </script> </body> </html>