title: PHP using Instagram API error HTTP request failed! HTTP/1.1 403 Forbidden
body: <p>I am using the url like this : 
  <a href="https://www.instagram.com/graphql/query/?query_hash=42323d64886122307be10013ad2dcc44&amp;variables=%7B%22id%22:%22555329715%22,%22first%22:12,%22after%22:%22AQDea0aZ27W349lmEWRcuh9xz7sO2Elo-_RDymqEMzT85he8dFwkrV4lbKlii9z7AkWPEbLx_txFKKbHeuotw9c4fY40B-Mm-lF7sfWtq8PUfQ%22%7D" rel="nofollow noreferrer">https://www.instagram.com/graphql/query/?query_hash=42323d64886122307be10013ad2dcc44&amp;variables=%7B%22id%22:%22555329715%22,%22first%22:12,%22after%22:%22AQDea0aZ27W349lmEWRcuh9xz7sO2Elo-_RDymqEMzT85he8dFwkrV4lbKlii9z7AkWPEbLx_txFKKbHeuotw9c4fY40B-Mm-lF7sfWtq8PUfQ%22%7D</a></p>
  
  <p>this url working as well is browser but and in code like this : </p>
  
  <pre><code>        $insta_id = $ret-&gt;users[0]-&gt;user-&gt;pk;
      $link1 = "https://www.instagram.com/graphql/query/?query_hash=42323d64886122307be10013ad2dcc44&amp;variables=%7B%22id%22:%22".$insta_id."%22,%22first%22:12,%22after%22:%22AQDea0aZ27W349lmEWRcuh9xz7sO2Elo-_RDymqEMzT85he8dFwkrV4lbKlii9z7AkWPEbLx_txFKKbHeuotw9c4fY40B-Mm-lF7sfWtq8PUfQ%22%7D";
      $response1 = file_get_contents($link1);
  </code></pre>
  
  <p>What I get before call my function is : </p>
  
  <pre><code>Message: file_get_contents(https://www.instagram.com/graphql/query/?query_hash=42323d64886122307be10013ad2dcc44&amp;variables=%7B%22id%22:%22492948834%22,%22first%22:12,%22after%22:%22AQDea0aZ27W349lmEWRcuh9xz7sO2Elo-_RDymqEMzT85he8dFwkrV4lbKlii9z7AkWPEbLx_txFKKbHeuotw9c4fY40B-Mm-lF7sfWtq8PUfQ%22%7D): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
  </code></pre>
  
  <p>Any Idea how resolve this problem ? Many thanks</p>