CakePHP-Facebook-Plugin
CakePHP-Facebook-Plugin copied to clipboard
facebook connect does not fetch EMAIL after login
I used echo $this->Facebook->login(); to login into Facebook.I created the application Ynomy in my fb account.Then I clicked on LogIn Button of facebook in my website, then give the permission to access Basic information of User.I need the email of User which I login for eg ABC account.But when I print print_r($this->Connect->user()); then it does not fetch EMAIL of ABC User.Please guide me whats the issue?
Add array('perms' => 'email') inside the login function, like this:
echo $this->Facebook->login(array('perms' => 'email'));
not working here, same conf 'perms' => 'email'