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


source to share





All Articles