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