https://supertokens.com/ logo
Title
c

cuteprogrammer

03/10/2023, 12:14 PM
Hi, can anyone help me out with this error? I'm getting this error when I'm trying to login using the facebook in thirdpartypasswordless recipe.
r

rp

03/10/2023, 12:15 PM
Hey. Does the fb ID you have contain the user’s email?
We require a user to have an email in order to sign in
c

cuteprogrammer

03/10/2023, 12:16 PM
and If the user is using their facebook account with phone number?
r

rp

03/10/2023, 12:18 PM
Won’t work by default. You will need to provide your own custom provider with fb which will add a fake email to the side based on the phone number.
I think people have done that in the past. See other discord threads.
c

cuteprogrammer

03/10/2023, 12:23 PM
okay
would you be able to provide the python code for adding custom facebook login email change?
r

rp

03/10/2023, 2:48 PM
see the section in our docs about custom provider please. It has code snippets in python
c

cuteprogrammer

03/10/2023, 5:23 PM
okay, thanks