title: Instagram realtime get post from callback
body: <p>Right, this is really working on my nerves, but Instagram has to do something about their bloody documentation.</p>
  
  <p>I am already trying for a week to live update my website with new instagram posts without refreshing the page. Twitter was fairly easy, but instagram is just one big mess. Basically I use the realtime Instagram API, the callback and all that stuff is working fine, but thanks to Instagram it does not return me an ID from the post that is new, the callback only returns some basic stuff:</p>
  
  <pre><code>[{"changed_aspect": "media", "object": "tag", "object_id": "nofilter", "time": 1391091743, "subscription_id": xxxxx, "data": {}}]
  </code></pre>
  
  <p>with this data you are nothing, except for the Tag, but I knew the tag before this callback too so doesn't matter. It actually only tells me that there is a new post. I have tried doing the same request as when the page loads, when this callback occurs, and get the posts that are newer than those already on the page. Unfortunately I have not succeeded in this yet. I have picked the ID from the last posted instagram post, and checked if it is in the callback request, and it's not.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>I'd appreciate some help, thanks!</p>
  
  <p>Edit:</p>
  
  <p>I'd like to note that this is not only a problem with the realtime api, but also with the normal API. I just don't know how to compare data so I don't get duplicates in my database(normal api), or on my website (realtime). I can't find any tutorial or documentation (Yes, I might be blind), that explains to me how to compare data. I can only find the min_id and max_id, but no explanation what these id's contains. I checked these id's with id's from results, and they do not match. It's not an ID from a media item.</p>
  
  <p>I also checked the next_url, and in my logic thinking, this should be a URL to the next page (like Twitter). </p>
  
  <p>Am I looking at this all wrong?</p>