title: Using the Instagram API to get ALL followers
body: <p>I'm using the Instagram API to get the number of people who follow a given account as follows.</p>
  
  <pre><code>$follow_info = file_get_contents('https://api.instagram.com/v1/users/477644454/followed-by?access_token=ACESS_TOKEN&amp;count=-1');
  $follow_info = @json_decode($follow_info, true);
  </code></pre>
  
  <p>This returns a set of 50 results. They do have a <code>next_url</code> key in the array, but it becomes time consuming to keep on going to the next page of followers when dealing with tens of thousands.</p>
  
  <p>I read on StackOverflow that setting the <code>count</code> parameter to <code>-1</code> would return the entire set. But, it doesn't seem to...</p>