Open olgaababic opened 3 years ago
I have the exact the same issue with Olgaababic
Same
I figured out what I was doing wrong. I accidentally wrote permissions as one item of an array separated by coma: ['public_profile,email']
.
It should be two separated items of array ['public_profile', 'email']
.
Probably this is happening after increasing minimum API Level to 29.
This was caused due to some GDPR issues being pending to be resolved in the Facebook Developers panel. I think this should be documented somewhere so people don't get crazy with it.
I'm using latest react-native-fbsdk version (2.0.0). This is my code:
When I login for the first time everything works fine. After that, logInWithPermissions always returns isCancelled = true even though I didn't cancelled request. This only happens on Android, on iOS everything works fine. I noticed that it works fine when I don't ask for email:
LoginManager.logInWithPermissions(['public_profile'])
But when I do ask for email, it always returns isCancelled = true (except first time)