Comment / similar account from facebook post

Any ideas on how to get comments on Facebook comments / comments quickly? My idea was to get statistics for every single record, but it takes too long.

$post = $facebook->api("/".$array['PostID']."/?fields=comments,likes", array());
$likes_count = count($post['likes']['data']);
$comments_count = count($post['comments']['data']);

      

I also tried to do this with a batch request like:

$buildQuery .= '{"method":"GET","relative_url":"'.$array['PostID'].'/?fields=comments,likes"}';

      

The problem here is that it doesn't work because batch requests only support POST mode.
What should I try? Any ideas?

+3
comments api facebook posts


source to share


No one has answered this question yet

Check out similar questions:

6956
Can comments be used in JSON?
1571
How does Facebook disable built-in developer tools?
1240
Comments in Markdown
1215
Why is Java code executed in comments with some Unicode characters?
1087
How do you block comments in YAML?
1065
A way to create multi-line comments in Python?
1053
What's a quick way to comment / uncomment lines in Vim?
761
How do I "comment" (add a comment) to a package / cmd?
749
How to comment out a tag block in XML?
597
Multi-line comments in Ruby?



All Articles
Loading...
X
Show
Funny
Dev
Pics