title: Android Facebook login with Firebase forces authentication via facebook.com/devices
body: <p>I want to create facebook login in my Android Application which is connected with Firebase.
  I followed the instruction in Firebase docs.
  Right now login with Facebook is possible, but the only way to login is to go to facebook.com/devices and wright one-time code. Also, my app is not asking me if I want to chenge account to another one.</p>
  
  <p>I want my application to read my facebook account from telephone and ask me if I want to log in to this account or log in using credentials.</p>
  
  <p><a href="https://i.stack.imgur.com/co9II.jpg" rel="nofollow noreferrer">When I click "login with facebook" this is beeing showed</a></p>
  
  <p>This is code which I wrote:</p>
  
  <pre><code>override fun onCreate(savedInstanceState: Bundle?) {
  [...]
      mCallbackManager = CallbackManager.Factory.create()
      val facebookButton = findViewById&lt;View&gt;(R.id.facebook_register_button) as LoginButton
  
      facebookButton.setReadPermissions("email", "public_profile")
      facebookButton.registerCallback(mCallbackManager, object : FacebookCallback&lt;LoginResult&gt; {
          override fun onCancel() {//...}
          override fun onError(error: FacebookException?) {//...}
          override fun onSuccess(result: LoginResult) {
              handleFacebookAccessToken(result.accessToken)
          }
      })
  }
  
  private fun handleFacebookAccessToken(token: AccessToken) {
      val credential = FacebookAuthProvider.getCredential(token.token)
      mAuth.signInWithCredential(credential)
              .addOnCompleteListener(this) {
                  when {
                      it.isSuccessful -&gt; updateUI(mAuth.currentUser)
                      else -&gt; {
                          LoginManager.getInstance().logOut()
                          updateUI(it.exception)
                      }
                  }
              }
  }
  </code></pre>
  
  <p>I albo code meta-data and INTERNET permission in manifest file</p>
  
  <p>What am I doing wrong?</p>