Search code examples
react-nativefacebookfacebook-javascript-sdk

Facebook login infinite repetition in React-native app


I created an app and implemented Facebook login using facebook sdk. If the person who has logged in once logs in again, the question of whether to maintain the authority is repeatedly asked and the login is not possible.

enter image description here

enter image description here

enter image description here


Solution

  • If your are intended to not have user already logged-in then why don't you try LoginManager.logOut() before calling LoginManager.logInWithPermissions or AccessToken.getCurrentAccessToken()