title: Instagram min_tag_id leaves out posts
body: <p>I am using the Instagram real-time API to get the most recent posts of a certain hashtag. Therefore I <em>subscribed</em> to the API and Instagram makes a <em>callback</em> everytime a post gets tagged with that hashtag. </p>
  
  <p>Ever 5 seconds my application checks if there where any callbacks (I register every callback to make sure, that I don't make any requests to Instagram if there where no callbacks before)</p>
  
  <p>When there was at least one callback, I make a request to the "tags/media/recent" endpoint. Additionaly I store the <code>min_tag_id</code> of every response and send it with the next request. That way Instagram only sends me the "newest" content.</p>
  
  <p><strong>So far so good.</strong></p>
  
  <p>Instagram is "kind" enough to indicate the <code>min_tag_id</code> I should use next. In a normal response it should look like this (I shortened the response a little):</p>
  
  <pre><code> "pagination":{
      "min_tag_id": "1061443126713008625"    // the min_tag_id I can use for the next request
   },
   "data":[
       {
           "id" : "1061443126713008625_782775143", // id of the first post
           // rest of the data...
       },{
           "id" : "1061443123569823070_176952626", // id of another post
           // rest of the data...
       }
   ]
  </code></pre>
  
  <p>As you can see, the <code>min_tag_id</code> given by Instagram is part of the <code>id</code> of the <em>first post</em>. </p>
  
  <p>"min_tag_id":"<strong>1061443126713008625</strong>"<br />
  "id":<strong>1061443126713008625</strong>_782775143"</p>
  
  <p>So next time I make a request with <em>that</em> <code>min_tag_id</code>, I receive all posts coming afterwards.</p>
  
  <p><strong>But</strong></p>
  
  <p>Sometimes Instagram gives me a <code>min_tag_id</code> but doesn't send me the post with that id. Like so:</p>
  
  <pre><code> "pagination": {
      "min_tag_id": "1061443926677909216"
   }
   "data":[
       {
           "id" : "1061443924303843601_1666507083"
            // ...
       },{
           "id" : "1061443905925893282_479418538"
           // ...
       }
   ]
  </code></pre>
  
  <p>And the next time I use the new <code>min_tag_id</code> I get all the posts coming afterwards but not the post with <em>that</em> id. 
  <strong>In short</strong> I am missing some posts when using the pagination.</p>
  
  <p>Is there anything that I am doing wrong? Is the pagination not meant for that? 
  Sometimes Instagram doesn't send me anything at all (besides the pagination) and sometimes the post with the <code>min_tag_id</code> is contained in  a response afterwards. 
  If I am not doing anything wrong and if I just have to live with it, does anyone know a way to get the real <code>id</code> of the post with just the <code>min_tag_id</code> ? As you can see they are not the same and I don't know the last part (<code>***_1666507083</code>)</p>