WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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....

share|improve this question

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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