title: Facebook API: best way to get like, share, comment count for a page/group post?
body: <p>What's the best way to get the like, share, comment count for a post?</p>
  
  <p>I'm trying via FQL but it doesn't seem to give any data when the URL is a FB post URL:</p>
  
  <blockquote>
    <p>SELECT like_count, comment_count, share_count FROM link_stat WHERE
    url="https://www.facebook.com/Macklemore/posts/10153256675935268"</p>
  </blockquote>
  
  <p>When I get the post info via the Graph API Explorer:</p>
  
  <blockquote>
    <p>386050065267_10153256675935268</p>
  </blockquote>
  
  <p>It gives me the like count and share count and I can get the comment count via <code>386050065267_10153256675935268/comments?summary=true</code></p>
  
  <pre><code>{
    "id": "386050065267_10153256675935268", 
    "from": {
      "category": "Musician/band", 
      "name": "Macklemore", 
      "id": "386050065267"
    }, 
    "message": "We’re playing a FREE show in November to celebrate the new Microsoft Store opening in Jacksonville, Florida. Come see us! Info here: http://msft.it/STJevent\n\nThursday, November 21, 2013\n10:00 p.m.\nStart lining up for your chance to attend the show on Saturday.\nLocation: Outdoors behind Oakley, near Dick’s Sporting Goods.", 
    "actions": [
      {
        "name": "Comment", 
        "link": "https://www.facebook.com/386050065267/posts/10153256675935268"
      }, 
      {
        "name": "Like", 
        "link": "https://www.facebook.com/386050065267/posts/10153256675935268"
      }
    ], 
    "privacy": {
      "value": ""
    }, 
    "type": "status", 
    "status_type": "mobile_status_update", 
    "created_time": "2013-09-26T16:30:23+0000", 
    "updated_time": "2013-09-27T20:39:45+0000", 
    **"shares": {
      "count": 274
    },** 
    "likes": {
      "data": [
        {
          "name": "Jabson Ramos", 
          "id": "100005418486411"
        }, 
        {
          "name": "Sophia Belen Parada Andrades", 
          "id": "100002552653152"
        }, 
        {
          "name": "Oli Barrera", 
          "id": "100001718791443"
        }, 
        {
          "name": "Viktoria Martinez", 
          "id": "1697663024"
        }
      ], 
      **"count": 3345**
    }, 
    "comments": {
      "data": [
        {
          "id": "10153256675935268_43537841", 
          "from": {
            "name": "Vu Thai", 
            "id": "1338690172"
          }, 
          "message": "Sean Viray Matt Win Soo... about my birthday weekend...", 
          "message_tags": [
            {
              "id": "75311036", 
              "name": "Sean Viray", 
              "type": "user", 
              "offset": 0, 
              "length": 10
            }, 
            {
              "id": "25113189", 
              "name": "Matt Win", 
              "type": "user", 
              "offset": 11, 
              "length": 8
            }
          ], 
          "can_remove": false, 
          "created_time": "2013-09-26T16:31:03+0000", 
          "like_count": 4, 
          "user_likes": false
        }, 
        .....
      ], 
      "paging": {
        "cursors": {
          "after": "MjY=", 
          "before": "MQ=="
        }, 
        "next": "https://graph.facebook.com/386050065267_10153256675935268/comments?limit=25&amp;after=MjY="
      }
    }
  }
  </code></pre>
  
  <p>Weird thing is when I run that query in my app I don't get the share count or like count. Am I doing something wrong? Is the data in the explorer different from what apps have access to? </p>
  
  <p>I know I can get the like count via 386050065267_10153256675935268/likes?summary=true</p>
  
  <p>Biggest thing would be the missing share count.</p>
  
  <p>So summary,</p>
  
  <p>Can you get these stats via FQL?
  If not, how can you obtain the share count via the graph API?</p>