0

I've integrated fb:comments using the href parameter, but I am now stuck in a situation where I need to retrieve the comment count without fb:comment-count.

I normally use an FQL query such as below...

$result = $facebook->api(array(
    'query' => 'SELECT post_id FROM comment WHERE xid = "' . $xid . '"', 
    'method' => 'fql.query'));

$comment_count = count($result);

However, there is no href column present in the comment table. Is there another way to do this? I have tried seeing if xid and href are interchangeable... no luck there. I'm also finding that fb:comments plugins created with xid id's are breaking a lot on me (see http://65beta.us/fb/fb1.php ).

Any advice would be greatly appreciated. Thanks!

1 Answer 1

2

You can easily reach comment and like counts like this: http://graph.facebook.com/?ids=http://65beta.us/fb/fb1.php

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.