title: file_get_contents not working with facebook graph api
body: <p>file_get_contents not working with following url (failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request)</p>
  
  <p><code>$token_url = "https://graph.facebook.com/oauth/access_token?client_id=235326466577139&amp;redirect_uri=http%3A%2F%2Fapps.facebook.com%2Flikeablephotos%2F&amp;client_secret=CLIENT_SECRET&amp;code=AQDFZbjpAUda8c_gz4wDDuBOVrsn0dApz3s8UA--7hFQIi1wb70-tDE56xXcCtDq-hV5UWzR5YEw_ozuGT24FLfvh9KnqHZ3xdn46P_KxYCf3DHJQA3AAu2ICHBqTk1-6fHTsl6FbagKz83H6dn15kkbKksajA4KcVIoPse5JbuBLlh6V5L1ANe8fzR94iH_SMU"</code>;</p>
  
  <pre><code>$response = file_get_contents($token_url);
  </code></pre>
  
  <p>but if you copy and paste the above URL into the browser address bar it works just fine! and returns: </p>
  
  <pre><code>access_token=AAADWBzZAyUvMBAL2Th6CRtxh2Up5soTCK8N4HJcy0ZBhQgJPxtZArKbuITISMoGLDxNiyeNW4GUZCBvJPeBTH6mx4v83ueUIAAYQJA1WrAZDZD&amp;expires=5112501
  </code></pre>
  
  <p>but his similar URL (for a different user) also works:</p>
  
  <pre><code>$token_url = "https://graph.facebook.com/oauth/access_token?client_id=235326466577139&amp;redirect_uri=http%3A%2F%2Fapps.facebook.com%2Flikeablephotos%2F&amp;client_secret=CLIENT_SECRET&amp;code=AQC2kTEV96-1Cki2oYUhyzjH6yFe6AJRd1Q3G8fbUXW-IsLJUlactzSwCvGVBK6jh1tL-t7v6dOWJZzbkSYhk0n2z6BHQcpljWAdoXFGB5zLC4FgW8fmxT6hwdRIQOr2dZ95CD_q5yJuOUz_2DItUa3_FF9m2_TmFYGEbxPoiaF47YSTUuZp6g-8ffziJcKDAdo";
  </code></pre>
  
  <p>when using <code>file_get_contents</code></p>
  
  <p>Please help, thanks</p>