title: facebook graph API endpoint for getting "likes, shares, comments" for post(s)
body: <p>Facebook is planning to drop support for FQL after V2.0 <a href="https://developers.facebook.com/docs/apps/changelog/#v2_0_fql" rel="noreferrer">https://developers.facebook.com/docs/apps/changelog/#v2_0_fql</a></p>
  
  <p>The below task could be done easily with FQL </p>
  
  <pre><code>SELECT like_info.like_count, comment_info.comment_count, share_count 
  FROM stream 
  WHERE post_id = "POST_ID_HERE"
  </code></pre>
  
  <p>I am unable to find a replacement to the above method in graph api. I know we can get likes and comments count like </p>
  
  <pre><code>POST_ID/likes?summary=true AND 
  POST_ID/comments?summary=true 
  </code></pre>
  
  <p>but I am unable to find a similar endpoint for shares.</p>
  
  <p>NOTE: I am not looking for solutions that take URL input and query graph api for that URL shares, rather I am looking at finding solution to get shares count by POST_ID</p>
  
  <pre><code>PAGE_ID/feed?fields=comments.limit(1).summary(true),likes.limit(1).summary(true)
  </code></pre>
  
  <p>I have looked at.</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/19061937/facebook-api-best-way-to-get-like-share-comment-count-for-a-page-group-post">Facebook API: best way to get like, share, comment count for a page/group post?</a></li>
  <li><a href="https://stackoverflow.com/questions/17755753/how-to-get-likes-count-when-searching-facebook-graph-api-with-search-xxx">How to get Likes Count when searching Facebook Graph API with search=xxx</a></li>
  <li><a href="https://stackoverflow.com/questions/18494845/facebook-post-comment-count-from-graph-api">Facebook post comment count from Graph API</a></li>
  <li><a href="http://www.quora.com/Facebook-Graph-API/Facebook-Graph-API-How-to-get-the-number-of-likes-on-a-status" rel="noreferrer">http://www.quora.com/Facebook-Graph-API/Facebook-Graph-API-How-to-get-the-number-of-likes-on-a-status</a></li>
  </ol>
  
  <p>The result should be something like this:</p>
  
  <pre><code>{
    "data": [{
        "like_info": {
        "like_count": 3506
      }, 
        "comment_info": {
        "comment_count": 263
      }, 
        "share_count": 278
    }]
  }
  </code></pre>
  
  <p>Any help would be highly appreciated.</p>
  
  <p>Cheers!</p>
  
  <p><strong>UPDATE</strong>: It was an access token issue as the token I was using did not have "read_stream" permission.</p>