last day (15 days later) » 

9:37 AM
0
Q: React-Native-FBSDK login doesn't return email

Andrea FaveroI'm trying to use the default <'LoginButton ... > for login in the app through Facebook login, but I can't manage to get the user's email. This is my button: <LoginButton publishPermissions={["email"]} onLoginFinished={ (error, result) => { if (error) { alert("Login fai...

 
hey, have you checked for different facebook accounts ? like some accounts are not registered via email
 
i've tried with 2 account created by me with 2 different email... but the result is the same. The problem is that when i check for the permission in the facebook webview/native view, the apps only request public_profile and not the email
 
can you try public profile in your catch condition too. and check iwth another account , existing active account of facebook whihc has email
 
nothing has changed
 
are you getting any first name profile pic and all?
 
9:37 AM
I get the name, profile pic and id field. I get every "standard" field, but not the email
 
const result = await LoginManager.logInWithPermissions([ "public_profile", "email", ]); ive done this with firebase , and it works, but some accounts dont have email id's so it doesnt provide email.
i guess ,problem is with facebook accounts and not your code
you can add public profile to everhwere you ask for permissions
 
sorry for the question... i've to follow the steps specified in this link? developers.facebook.com/docs/android/getting-started
because i haven't done it, but i get the public_profile information
big joke, i've done it ':D
i've tried with another profile (with public + visible email) but i only get name, pic, id, ...
it's like the app doesn't see the
"readPermissions={['public_profile', 'email']}"
 
10:04 AM
hmm, pretty strange
so did you achieve reading the email?
 
10:32 AM
yep, the field used to add permission had a wrong name
in the official documents ':D
 

last day (15 days later) »