On the Facebook Developer page they say the comments counts can be displayed using

<fb:comments-count href=http://example.com/></fb:comments-count> awesome comments

I added this to my loop then:

<fb:comments-count href=<?php the_permalink();?>></fb:comments-count>

to display the comments count per each post.

Nothing is displayed even though I do have comments...any suggestion?

Thank you

Edit: placing the code in single.php, it shows the number 0 despite I have many comments....

link|improve this question

79% accept rate
feedback

1 Answer

You need to include their Facebook SDK in order to utilize fbml.

FBML is also deprecated for use of xFBML.

In this case, i would just recommend picking a wordpress / facebook plugin for what you need to do. As what you're trying to do in code isn't that simple.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.