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.
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?
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.
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.
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?
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.