title: Trouble with firebase and facebook login
body: <p>My problem is where sign with <code>Facebook</code> I got an error with Firebase authentication,the method <code>signInWithCredential(AuthCredencial credencial)</code> in <code>OncompleteListener</code> the result of task is not successful and I can't understand why.</p>
  
  <hr>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      ....
      callbackManager = CallbackManager.Factory.create();
      loginButton.setReadPermissions("email", "public_profile");
      loginButton.registerCallback(callbackManager, new FacebookCallback&lt;LoginResult&gt;() {
          @Override
          public void onSuccess(LoginResult loginResult) {
              System.out.println("Entro");
              handleFacebookAccessToken(loginResult.getAccessToken());
          }
      ...
      });
  
      firebaseAuth = FirebaseAuth.getInstance();
      firebaseAuthListener = new FirebaseAuth.AuthStateListener() {
          @Override
          public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {
              FirebaseUser user = firebaseAuth.getCurrentUser();
              if (user != null) {
                  // User is signed in
                  Log.d("TAG", "onAuthStateChanged:signed_in:" + user.getUid());
              }
          }
      };
  }
  
  private void handleFacebookAccessToken(AccessToken accessToken) {
  
      AuthCredential credential = facebookAuthProvider.getCredential(accessToken.getToken());        firebaseAuth.signInWithCredential(credential).addOnCompleteListener(this, new OnCompleteListener&lt;AuthResult&gt;() {
  
          @Override
          public void onComplete(@NonNull Task&lt;AuthResult&gt; task) {
              Log.d("TAG","TERMINOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO");
              if (!task.isSuccessful()){
                  Toast.makeText(this, "Error al iniciar en firebase", Toast.LENGTH_SHORT).show();
          }
  
      });
  }
  </code></pre>
  
  <hr>
  
  <p>if you run the Listener never change the state and never go to my <code>MainActivity</code>, this code it's made from Firebase tutorial and Facebook tutorial. Facebook sign in good but Firebase no, sorry for my English and thanks!</p>