title: Trying to integrate Facebook Authentication into a php web application
body: <p>Am trying to integrate facebook authentication into my php web application without using the JavaScript version.</p>
  
  <p>I have downloaded the php sdk.</p>
  
  <p>The basic example works perfectly and i can get the user's public accessible information with the below code. </p>
  
  <pre><code>$uid = $facebook-&gt;getUser();
  $user = $facebook-&gt;api('/me');
  </code></pre>
  
  <p>However, when i try to request for extended permissions with the below code:</p>
  
  <pre><code>$api_call = $facebook-&gt;getLoginUrl(array('req_perms' =&gt; 'email,user_birthday,status_update,publish_stream,user_photos,user_videos'));   
  header("Location: {$api_call}");
  </code></pre>
  
  <p>It keeps loading on facebook with the "Redirecting" in the title bar.</p>
  
  <p>I will very much appreciate if someone can help me out with a link to a tutorial that can help me out.</p>
  
  <p>Thanks</p>