Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React native fbsdk user change issue on both IOS and Android

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?

like image 1000
Stanislav Matviichuck Avatar asked Oct 23 '17 13:10

Stanislav Matviichuck


1 Answers

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

like image 144
kingPuppy Avatar answered Sep 22 '22 21:09

kingPuppy