webtechnick / CakePHP-Facebook-Plugin

CakePHP Facebook Plugin
http://facebook.webtechnick.com
445 stars 138 forks source link

facebook connect does not fetch EMAIL after login #141

Open vaishali123 opened 11 years ago

vaishali123 commented 11 years ago

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?

Gerifield commented 10 years ago

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

echo $this->Facebook->login(array('perms' => 'email'));
aymone commented 9 years ago

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