CakePHP-Facebook-Plugin icon indicating copy to clipboard operation
CakePHP-Facebook-Plugin copied to clipboard

facebook connect does not fetch EMAIL after login

Open vaishali123 opened this issue 12 years ago • 2 comments

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?

vaishali123 avatar Jul 01 '13 13:07 vaishali123

Add array('perms' => 'email') inside the login function, like this:

echo $this->Facebook->login(array('perms' => 'email'));

Gerifield avatar Sep 04 '13 11:09 Gerifield

not working here, same conf 'perms' => 'email'

aymone avatar Apr 17 '15 16:04 aymone