title: Request instagram api acces token with cURL
body: <p>I'm trying to get the acces token from instagram api this is the sample request of the documentation</p>
  
  <pre><code> curl -F 'client_id=CLIENT_ID' \
      -F 'client_secret=CLIENT_SECRET' \
      -F 'grant_type=authorization_code' \
      -F 'redirect_uri=AUTHORIZATION_REDIRECT_URI' \
      -F 'code=CODE' \
      https://api.instagram.com/oauth/access_token
  </code></pre>
  
  <p>and this is my code </p>
  
  <pre><code>&lt;body&gt;
      &lt;?php
        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL, "https://api.instagram.com/oauth/access_token");
        curl_setopt($curl,CURLOPT_POST, true);
        curl_setopt($curl,CURLOPT_POSTFIELDS, "client_id=MYID&amp;
          client_secret=MY_CLIENT_SECRET&amp;grant_type=authorization_code&amp;
          redirect_uri=http://localhost/pruebainst/pruebas.php&amp;code=".$_GET['code']);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
        curl_setopt($curl, CURLOPT_TIMEOUT, 10);
        $output = curl_exec($curl);
        curl_close($curl);
  
        echo ($output);
       ?&gt;
    &lt;/body&gt;
  </code></pre>
  
  <p>With this code I don't get anything from curl request</p>