Displaying Facebook comments count with <fb:comments-count> tag

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

Topic facebook Wordpress

Category Web


I'm using a Facebook plugin on my WordPress site. I put the code below on the loop and single.php page to show the number of comments


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.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.