title: Instagram API Pagination is not Working Properly
body: <p>as refer <a href="https://stackoverflow.com/questions/10881511/instagram-api-how-to-get-all-user-media">Instagram API: How to get all user media?</a> 
   get pagination data with </p>
  
  <pre><code> /v1/users/self/media/recent?count=-1&amp;access_token=xxx.
  </code></pre>
  
  <p>it returns 20 photos because of limit and  also got pagination data </p>
  
  <pre><code>{"pagination": {"next_url": "http://....", "next_max_id": "841771651284233931_1369704762"}
  </code></pre>
  
  <p>now i pass this in next_max_id to fetch another 20 photos</p>
  
  <pre><code>/v1/users/self/media/recent?access_token=xxx&amp;max_id="841771651284233931_1369704762"
  </code></pre>
  
  <p>get only 1 photo and with no pagination data </p>
  
  <pre><code>{"pagination": {}, "meta": {"code": 200}, "data": 
  </code></pre>
  
  <p>There are 29 photos in my instagram, so 20 photos in one api call and in another call only 1 photo is retrieved, what about others and what to do?</p>