Signing in with Facebook using Cognito redirects URL with error

I created a user survey and connected Facebook to it. Here's what it looks like in the AWS console.

CognitoFacebook

I also set email as a required attribute for registration.

However, when I visit my login page and click Continue with Facebook , I am redirected back to my page with the URL

 http://localhost:4200/#error_description=attributes%20required:%20[email]&error=invalid_request 

Why is this happening? I followed all the instructions and included email as the scope. I expect access_token in the URL.

Please, help. Thanks!

0
facebook-login amazon-cognito aws-cognito
source share
1 answer

The error message indicates that an email address is required that indicates that the email address is a required attribute in your user pool. You did the right thing by including the email area, but you must also enable attribute mapping for the provider (Facebook in your case) in the Amazon Cognito console by matching the facebook email with the Cognito email attribute. Please give this snapshot and let us know if it works or not.

+1
source share

All Articles