title: Instagram Real time updates tag - getting empty data, why?
body: <p>Heloo, </p>
  
  <p>I am working on one project and I need real time updates from Instagram for certain tag.</p>
  
  <p>This is my code for Create a Subscription</p>
  
  <pre><code>&lt;?php
      $client_id = 'MOJID';
      $client_secret = 'MOJIDSECRET';
      $redirect_uri = 'http://example.net/instagram/callback.php';
      $apiData = array(
          'client_id' =&gt; $client_id,
          'client_secret' =&gt; $client_secret,
          'redirect_uri' =&gt; $redirect_uri,
          'aspect' =&gt; "media",
          'object' =&gt; "tag",
          'object_id' =&gt; "winter",
          'callback_url' =&gt; $redirect_uri
      );
  
      $apiHost = 'https://api.instagram.com/v1/subscriptions/';
  
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, $apiHost);
      curl_setopt($ch, CURLOPT_POST, 1);
      curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($apiData));
      curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: application/json'));
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      $jsonData = curl_exec($ch);
      curl_close($ch);
      var_dump($jsonData);
  ?&gt;
  </code></pre>
  
  <p>And output is:</p>
  
  <pre><code> [meta] =&gt; stdClass Object
          (
              [code] =&gt; 200
          )
  
      [data] =&gt; stdClass Object
          (
              [object] =&gt; tag
              [object_id] =&gt; winter
              [aspect] =&gt; media
              [callback_url] =&gt; http://example.net/instagram/callback.php
              [type] =&gt; subscription
              [id] =&gt; 3932963
          )
  
  )
  </code></pre>
  
  <p>This is code for callback.php:</p>
  
  <pre><code>&lt;?php
      if (isset ($_GET['hub_challenge'])){
          echo $_GET['hub_challenge'];
      }
      else{
          $myString = file_get_contents('php://input');
          $ALL = $myString."\r\n";
          file_put_contents('activity.log', $ALL, FILE_APPEND | LOCK_EX);
      }
  ?&gt;
  </code></pre>
  
  <p>And a line from activity.log is:</p>
  
  <p>[{"changed_aspect": "media", "object": "tag", "object_id": "winter", "time": 1385411793, "subscription_id": 3932963, "data": {}}]</p>
  
  <p>I am getting the right subscription_id but the data is empty.
  Also Acces log looks like:</p>
  
  <p>54.209.52.224 - - [25/Nov/2013:20:59:20 +0100] "POST /instagram/callback.php HTTP/1.0" 200 231 "-" "Python-httplib2/0.7.4 (gzip)"</p>
  
  <p>And this is good, status code 200 but once again data is empty. Instagram is 'comming' to my callback file but the data is empty. </p>
  
  <p>What am I doing wrong?</p>