title: Get instagram public JSON feed with cURL PHP
body: <p>I want to use cURL to get the JSON response from a public available instagram profile. I'm stuck to the response, because If I try to <code>var_dump</code> the data it will result in nothing, a blank string. Is there something wrong in my code?</p>
  
  <pre><code>$url = 'https://instagram.com/'.$instance['username'].'/?__a=1';
  $ch = curl_init();
  curl_setopt( $ch, CURLOPT_URL, $url );
  curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
  curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Accept: application/json') );
  $data = curl_exec($ch);
  curl_close($ch);
  var_dump( $url );
  </code></pre>
  
  <p>The <code>$instance</code> variable is set using a wordpress widget input form and is correct. My problems are only with the curl beahviour.</p>
  
  <p>Thanks for the help</p>