facebook login have error of 'Email is required. '

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
I just created an app in Facebook.
and config the App ID/API Key: Secrect.
but once i test to login from facebook, it will redirect to facebook and call back successfully,
but with the error   'Email is required. '

I have do nothing, the Nop is v3.6.
I have no idea for what should i can do? because i didn't do anything just follow the official instruction.
8 years ago
Please have a look at https://www.nopcommerce.com/boards/t/37012/facebook-external-issue-on-nop-360.aspx#150995
8 years ago
I have already tried this way, but still show the message.
Are there any special settings I need for facebook? or just simply create an web app in FB.
8 years ago
a.m. wrote:

except to fill the AppId and Secrect
what should i do then?
for Nop I didn't do anything, just downed the version 3.6 source code and publish it to IIS.
and from facebook side, and i also just created an APP with the website type.
I am not sure from our official side, what should i do for finding the reason?
8 years ago
BTW the facebook API version is v2.5.
8 years ago
rickxie wrote:
I just created an app in Facebook.
and config the App ID/API Key: Secrect.
but once i test to login from facebook, it will redirect to facebook and call back successfully,
but with the error   'Email is required. '

I have do nothing, the Nop is v3.6.
I have no idea for what should i can do? because i didn't do anything just follow the official instruction.

In your facebook app you have to set email in contact email and make it live to all.http://stackoverflow.com/questions/20696738/i-am-new-how-do-i-make-my-app-live-on-fb
Did you do that?
8 years ago
Finally I found bellows:
1. email is required? Facebook email should be verified before to use it to login, otherwise email can't be got.
2. http://localhost also can debug, so that we can find the details. before i don't know this point.
3. we can test from official api to see the return value.
https://developers.facebook.com/tools/explorer/


In summary, I think Nop should handle the situation 1 above, or just to alert a [email is required] to block user to login.
8 years ago
rickxie wrote:
Finally I found bellows:
1. email is required? Facebook email should be verified before to use it to login, otherwise email can't be got.
2. http://localhost also can debug, so that we can find the details. before i don't know this point.
3. we can test from official api to see the return value.
https://developers.facebook.com/tools/explorer/


In summary, I think Nop should handle the situation 1 above, or just to alert a [email is required] to block user to login.



rickxie ,do you have solved the problem? how solve the problem?
8 years ago
Please see this post of mine. It's fixed in the upcoming version 3.70
8 years ago
Change FacebookProviderAuthorizer.cs class  ,add method RequestEmailFromFacebook,
and call this in the ParseClaims() method where claims.Contact.Email is set.
I have done this,but it still show the error of 'Email is required. '
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.