title: facebook graph api and file_get_contents = 403
body: <p>I'm trying to create a simple script to fetch user profile data from an id. </p>
  
  <p>For example</p>
  
  <pre><code>$link = json_decode(file_get_contents('http://graph.facebook.com/zuck'));
  echo $link_&gt;name;
  </code></pre>
  
  <p>The problem is that it's seems like facebook is limiting these kind of requests. Sometimes it's working, but sometimes I'm getting the following error : </p>
  
  <blockquote>
    <p>Warning: file_get_contents(<a href="http://graph.facebook.com/zuck" rel="nofollow">http://graph.facebook.com/zuck</a>)
    [function.file-get-contents]: failed to open stream: HTTP request
    failed! HTTP/1.0 403 Forbidden</p>
  </blockquote>