Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.