I use this (https://github.com/facebook/react-native-fbsdk) component in attempts to setup authentication to my app using Facebook. I've successfully configured it so login button gives me a valid token on both platforms.
Problem is that application records successfully logged user
and it is pretty tricky to get rid of it (only reinstall can help). Moreover, when you try to change logged a user in facebook application on android - it gives an error:
'User logged in as different Facebook user'
I always receive this screen instead of a login form, where I can enter other credentials or at least change the account.
I use provided LoginManager.logInWithReadPermissions
for login and LoginManager.logOut
seems to do nothing.
So, is it possible for me to make application to give a user a choice
if the login was not correct or main-fb-app account has changed?
This appears to be an unresolved issue https://github.com/facebook/react-native-fbsdk/issues/536
Do your part – Please vote up this issue so it can be resolved by the FB team in the future.
Answer – Currently, this question is not possible to resolve.
Dev Workaround – If you are in development and need to test multiple users, you can use a different emulator authenticate with another login.
If this gets resolved by FB, please consider editing this answer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With