title: Instagram Realtime API auto unsubscribing high volume tags
body: <p>I read over the instagram developer docs that instagram unsubscribes tags if we are not acknowledge the POST within a 2 second timeout.</p>
  
  <p>How do I make sure, my code responds in 2 seconds?How do I check when the unsubscription happening? </p>
  
  <p>Here is my code. I am using php.Please advise</p>
  
  <pre><code>    if ($challenge) {
          echo $challenge;
          exit ();
      } else {
  
  
          $myString = file_get_contents ( 'php://input' );
          $jsonArray = json_decode ( $myString );
  
          foreach ( $jsonArray as $value ) {
  
              $hashtag = $value-&gt;object_id;
  
              $firstApi = 1;
  
                  exec ( "php getInstagramData.php $hashtag ");
  
          }
      }
  </code></pre>