facebook-android-sdk icon indicating copy to clipboard operation
facebook-android-sdk copied to clipboard

FBSDK does not allow me to sign in different account after logout

Open KrisLau opened this issue 2 years ago • 4 comments

Checklist before submitting a bug report

Java version

8.0.2010.9

Android version

Android 11

Android SDK version

13.2.0

Installation platform & version

Yarn

Package

Login

Goals

Login > logout > log in with different account

Expected results

Should show option to log out and change account

Actual results

Log in screen assumes I'm using the same account with no options to change account or log out

Steps to reproduce

I use react-native-fbsdk-next to use this SDK and there is already an issue there for this:

  • https://github.com/thebergamo/react-native-fbsdk-next/issues/29

The main maintainer there has stated that they cannot do anything unless the underlying Facebook SDK changes. There is also a demand for this as there was also a previous issue on the old deprecated https://github.com/facebookarchive/react-native-fbsdk/issues/712

Code samples & details

// INSERT YOUR CODE HERE

KrisLau avatar May 27 '22 16:05 KrisLau

This is expected behavior that we do not currently support "switch account" on the FB Login dialog. The user can go to Facebook app and / or FB on browser to switch accounts.

yurika-e avatar Jun 07 '22 23:06 yurika-e

@yurika-e I've tried changing the account on the browser and it does not seem to work. Even when I log out and don't log in to any account, it will just automatically log me back in to the same account. Reference this thread: https://github.com/thebergamo/react-native-fbsdk-next/issues/29

KrisLau avatar Jun 08 '22 13:06 KrisLau

@yurika-e ?

KrisLau avatar Jun 28 '22 19:06 KrisLau

To log in to different account I had to clear Chrome app data 🤯

dbacinski avatar Aug 08 '23 10:08 dbacinski

@dbacinski Yeah that's the same for me but it doesn't seem like facebook is planning to implement any fixes for this. I'm not sure how other apps implement it since I've definitely seen it in other apps. I'm assuming it has something to do with using an incognito mode webview somehow but im not sure

KrisLau avatar Jan 14 '24 10:01 KrisLau