How to get email address via facebook login?

I have a built-in facebook login to my site (codeigniter). I got the name, url profile, etc., but the email address is null ... How can I get the email address? I used the code from http://www.haughin.com/code/facebook/

+4
source share
2 answers
  • Make your application request email permission from your user and get an access token .
  • Using this access token , request the Graph API or use FQL to get the user's email address.

Note. When authorizing your permission request, the user can provide you with a proxy email address. In this case, the email address you have access to will look something like {random_string}@facebook.com .

Refer to Authentication Documentation and Permission Documentation for more information.

+3
source

Request user_email permission

0
source

All Articles