How can users register with the Cognio User Pool via Facebook if an email attribute is required but Facebook does not provide it?

My AWS Cognito Pool has an email address as a required attribute. All users who subscribed to my application had to provide their email.

I recently added Facebook as an identity provider to my user pool.

The problem is that Facebook does not always provide an email, and in these cases, Cognito redirects new users to the error page that says "Email is required."

I want to invite the user to enter his / her email address, and then continue the registration process, and not just end it with an error. Is there any way to do this?

+6
source share
2 answers

This is currently not possible in Cognito user pools.

I came across the same example when working with clients, even if I agree with the relevant areas, Facebook will not provide it in the OpenID token.

I suspect that the email message can be recovered via the API by following this, so you might be lucky with the Cognito trigger user pools to receive the email and send it to post-authentication if it is missing.

Otherwise, you will not be able to do much, except to make the email address optional, and then create an experience with clients around it.

+1

"Email" Facebook, Facebook , . Facebook .

https://developers.facebook.com/docs/facebook-login/permissions/#reference-email

, , . , - Facebook , .

, Cognito, , Cognito Post- -

+1

All Articles