title: php instagram api not getting all the followers
body: <p>I have created a php script which will take a userid of instagram user and will scrap ALL the followers of that user. Below is the script. The problem is when I am trying to get the total followers list of a user which have say 1 or 2 millions followers than my script is crashing after 60k usernames with error <code>PHP Warning:  in_array() expects parameter 2 to be array, null given in filename.php on line LINE NO</code></p>
  
  <pre><code>&lt;?php
  
      require '../src/Instagram.php';
  
      /////// CONFIG ///////
      $username = 'USERNAME';
      $password = 'PASSWORD';
      $debug = false;
  
      $i = new Instagram($username, $password, $debug);
      $myfile = fopen("file.txt", "w") or die("Unable to open file");
  
      try {
          $i-&gt;login();
          $var = $i-&gt;getUserFollowers("432464344");
          do {
              $results = $var['users'];
              foreach($results as $result) {
                  $username = $result['username'];
                  $username = $username . "\n";
                  fwrite($myfile, $username);
          }
          if (in_array('next_max_id', $var)) {  // &lt;-- HERE ERROR
              $next_max_id = $var['next_max_id'];
          } else {
              break;
          }
          $var = $i-&gt;getUserFollowers("432464344", $next_max_id);
      } while (1);
  } catch (InstagramException $e) {
      $e-&gt;getMessage();
      fclose($myfile);
      exit();
  }
  echo $count;
  fclose($myfile);
  </code></pre>
  
  <p>Thanks and regards,</p>