title: Facebook authentication error $facebook->getUser(); not working?
body: <p>I am using this URL for authentication:</p>
  
  <pre><code>https://www.facebook.com/dialog/oauth?
       client_id=YOUR_APP_ID&amp;redirect_uri=YOUR_URL&amp;scope=email,read_stream
  </code></pre>
  
  <p>It is working fine, but when I use this code it always gives me a 0 value:</p>
  
  <pre><code>$user = $facebook-&gt;getUser();
  </code></pre>
  
  <p>What's wrong here?</p>