title: How to get all post from a page with count ALL likes and comments?
body: <p>attached got a question ...
    I try with all feeds Likes and Comments retrieve a page during a period. or .. actually I only need the total number of likes and comments overall.</p>
  
  <p>So far ...</p>
  
  <pre><code>$user_pages = $facebook-&gt; api ('/ me / accounts');
  
    ...
  
  $page_feeds = $facebook-&gt; api ("/". $ page_name ['id']. '/ feed', 'GET', array ('limit' =&gt; 10000, 'since' =&gt; mktime (0,0, 0, date ("m"), 1, date ("Y"))));
  
    ...
  
  foreach ($page_feeds ['data'] as $ page) {
  
      $c = $facebook-&gt; api ("/" $ page ['id'] "/ likes", "GET", array ('limit' =&gt; 10000)..);
      $temp ['likes'] = count ($ c ['data']);
  
      $c = $ facebook-&gt; api ("/" $ page ['id'] "/ comments", "GET", array ('limit' =&gt; 10000)..);
      $temp ['comments'] = count ($ c ['data']);
  
  }
  
    .....
  </code></pre>
  
  <p>So I get all the pages in which I am admin, then all feeds the Page since the first of the month. This has been going on forever until the answer is there. But the problem is I only get max 25 max 25 Likes and Comments. (the word "counts" as described in the API documentation but I missing here.</p>
  
  <p>So now I have to call in the loop every feed all the likes and comments on it and then to get the number.</p>
  
  <p>These queries take now to three minutes ... which is clearly too long ...</p>
  
  <p>Is not it ne nice way? I have been able to find anything.
    I was hoping I this query</p>
  
  <pre><code>$page_feeds = $ facebook-&gt; api ("/". $ page_name ['id']. '/ feed', 'GET', array ('limit' =&gt; 10000, 'since' =&gt; mktime (0,0, 0, date ("m"), 1, date ("Y"))));
  </code></pre>
  
  <p>can adjust, and then ALL likes and comments (or at least the numbers) to get</p>
  
  <pre><code>150769909716/feed?fields=likes.limit(10000).fields(id),comments.limit(10000).fields(id)&amp;limit=10000&amp;since=1372608000
  </code></pre>
  
  <p>unfortunately gives me back a maximum of only 25 likes and comments.</p>
  
  <p>Timo</p>
  
  #
  
  <p>Edit:</p>
  
  <pre><code>https://graph.facebook.com/[pageid]/feed?fields=likes.limit%2810000%29.fields%28id%29,comments.limit%2810000%29.fields%28id%29&amp;locale=de_DE&amp;since=1372608000&amp;limit=10000&amp;access_token=yyyy
  </code></pre>
  
  <p>give me:</p>
  
  <pre><code>{
     "data": [
        {
           "id": "xxx_xxx",
           "created_time": "2013-07-23T07:08:25+0000",
           "likes": {
              "data": [
                 {
                    "id": "xxxx"
                 },
              ],
              "paging": {
                 "cursors": {
                    "after": "xxx",
                    "before": "xxxx"
                 },
                 "next": "xxxx"
              }
           },
  
  
  
  https://graph.facebook.com/[pageid]/feed?since=1372608000&amp;limit=10000&amp;access_token=yyyy
  </code></pre>
  
  <p>giv me: (yes, my Count is there...but only browsercall)</p>
  
  <pre><code>"likes": {
              "data": [
                 {
                    "name": "xxx",
                    "id": "xxx"
                 },
                  ],
              **"count": 53**
           },
  </code></pre>
  
  <p>the same call per call give me the result without Count data....</p>