title: How to get total Like, Share, and Comment count for various Facebook post types?
body: <p>I am creating a simple CMS system whereby users can contribute inspirational posts made by brand pages on Facebook.  All the user has to do is paste in a permalink to a post and the CMS will handle pinging the Graph API in order to acquire all the info it needs.  (e.g. <a href="https://www.facebook.com/photo.php?fbid=10152047553868306&amp;set=a.99394368305.88399.40796308305&amp;type=1&amp;relevant_count=1" rel="nofollow">https://www.facebook.com/photo.php?fbid=10152047553868306&amp;set=a.99394368305.88399.40796308305&amp;type=1&amp;relevant_count=1</a>)</p>
  
  <p>One of the requirements of the CMS is that <code>like</code>, <code>comment</code>, and <code>share</code> counts are included for each post.  This is where I struggle.</p>
  
  <p>Simply pinging the graph endpoint with a photo ID will only return a paginated list of likes/comments.  There is no parameter for total likes or total comments.  Fortunately, the <code>photo</code> table includes <code>like_info</code> and <code>comment_info</code> members for me to query upon.  This works great for getting totals on photos:</p>
  
  <p><code>SELECT like_info, comment_info FROM photo WHERE object_id = 10152047553868306</code></p>
  
  <p>One would expect then that I could apply the same FQL <code>SELECT</code> on the <code>status</code> or <code>video</code> tables in order to get the <code>like</code> and <code>comment</code> info for status updates and video posts but you cannot.  <code>like_info</code> and <code>comment_info</code> only reside on the <code>photo</code> table.</p>
  
  <p>At least right now I can get like/comment total for photos, but I still see no indication on how to get share totals for a photo.</p>
  
  <p>Is there a way I can reliably acquire <code>like</code>, <code>comment</code>, and <code>share</code> counts for video posts, photo posts, and status posts? Using any combination of Graph or FQL API?</p>
  
  <p>Any help would be extremely appreciated.</p>