I use Facebook comments on my website, and it works fine, but i can not retrieve the count of comments.
I tried the HTML5 code: <div class="fb-comments-count" data-href="http://www.bmeme.hu/?site=post&id=20">0</div>
but it returns with 0 instead of the real number.
I checked my page here: https://graph.facebook.com/comments/?ids=http://www.bmeme.hu/?site=post&id=20 but as you can see it returns nothing.
Why cannot get facebook comments count?
Thanks
Update: Here is my code, what I use:
<div class="fb-comments-count" data-href="<? echo urlencode($siteurl."/?site=post&id=".$value["id"]); ?>" style="display: inline;">0</div> komment
$siteurl = http://www.bmeme.hu
$value["id"] //the actual post id
And in the first line in <body>
tag:
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
And not works..