facebook login error

6 years ago
Nop 3.0

I cant login with facebook
It's getting to facebook app page, however the return url issue and error
The remote server returned an error: (400) Bad Request.

the following line in FacebookProviderAuthorizer.cs is throwing the error:
var authResult = this.FacebookApplication.VerifyAuthentication(_httpContext, GenerateLocalCallbackUri());

the uri i get back from GenerateLocalCallbackUri is:
http://localhost:39868/plugins/externalauthFacebook/logincallback/


thats for both local host and an active domain.

thanks
6 years ago
Everything works fine (just tested). Are you sure you specified a valid "client key"? You can get this error if it is not valid
6 years ago
a.m. wrote:
Everything works fine (just tested). Are you sure you specified a valid "client key"? You can get this error if it is not valid


it worked before with the same facebook app
6 years ago
Have you upgraded or installed nopCommerce from scratch?
6 years ago
I had one issue solved
I was working on sand box mode(should work with my facebook account I'm the administrator) , however i have which it to public mode and its working


but now I get:  "Email is required." error message
6 years ago
i set the Configure your permissions
add email at the User & Friend Permissions
but still cnat get the email address

does anyone know how to configure the facebook app permission
6 years ago
hezyz wrote:
i set the Configure your permissions
add email at the User & Friend Permissions
but still cnat get the email address

does anyone know how to configure the facebook app permission



i have created an app with all available permissions and extended permission including email. still cant get the email address.
further when facebook windows promote it only ask fro public information

  
cant get the email, anyone?
6 years ago
I don't know what permission you disabled in your application (FaceBook application, not nopCommerce), but it works just fine on my computer.

Try debugging "ParseClaims" method of \Nop.Plugin.ExternalAuth.Facebook\Core\FacebookProviderAuthorizer.cs file. Are you getting an email there?
6 years ago
a.m. wrote:
I don't know what permission you disabled in your application (FaceBook application, not nopCommerce), but it works just fine on my computer.

Try debugging "ParseClaims" method of \Nop.Plugin.ExternalAuth.Facebook\Core\FacebookProviderAuthorizer.cs file. Are you getting an email there?


that is what i did , i get the user name and null for email.
The facebook app does not return email address, although I ask permission to get that email.

I know it's new in facebook app so if u use an old app it might work.

can u please try to create a new app and see if it works for u?


just to be on the safe side I have specified all the available permissions
http://www.windalert.co.il/facebook.png
and that is after many tests with just the email


thank you
6 years ago
I'll test it with a new application