I have a website with the Facebook login implementation. My app has the permission for the user\'s email. Even though the user logs into my app using Facebook I can only ret
You can check this https://developers.facebook.com/bugs/298946933534016/ to see that it's not a bug actually, it's just possible and correct that the user has no email registered in facebook due to several reasons. For example have created the account from mobile phone or haven't validated his or her email...
So it's a known issue. The best workaround maybe could be to ask for the email in a form if we cannot get it from fb.
The problem for me is how to reproduce the empty email field to test the solution provided
Editing.. This is what they say in the facebook developers site:
...The documentation for the 'email' field of the 'user' object ( https://developers.facebook.com/docs/reference/api/user/ ) clarifies the expected behaviour here, which is: "this field will not be returned if no valid email address is available".
There are a number of circumstances in which you may think a user should have an email address returned but they will not. For privacy and security reasons it is not possible to elaborate on the precise reason any specific user's email address will not be returned so please do not ask. Some possible reasons:
No Email address on account; No confirmed email address on account; No verified email address on account; User entered a security checkpoint which required them to reconfirm their email address and they have not yet done so; Users's email address is unreachable.
You also need the 'email' extended permission, even for users who have a valid, confirmed, reachable email address on file...