title: Issue with Login button facebook/Firebase the redirection is the main menu instead of going into my app
body: <p>Hello everyboy i checked a lot of post to find my issue but nothing i tried worked so i'm here asking for your help.
  It's my first post on this channel sorry if i make mistakes.</p>
  <p>So my issue is the following:</p>
  <ul>
  <li>I need to access my app via the Facebook Button that button register the user into my firebase account.
  My issue is when i click on the button it ask if i want to connect my fb account i say yes.
  After it ask if i want to enter the app with that account and when i press yes i comeback into my MainActivity where is my FB button.</li>
  </ul>
  <p>Here is my android.manifest:</p>
  <pre><code> &lt;meta-data
          android:name=&quot;com.facebook.sdk.ClientToken&quot;
          android:value=&quot;@string/facebook_client_token&quot; /&gt;
  
      &lt;meta-data android:name=&quot;com.facebook.sdk.ApplicationId&quot; tools:replace=&quot;android:value&quot; android:value=&quot;@string/facebook_app_id&quot;/&gt;
      
      &lt;activity
          android:name=&quot;.FacebookAuthActivity&quot;
          android:label=&quot;@string/app_name&quot; /&gt;
  </code></pre>
  <p>Here is where i called into my Mainactivity , FacebookActivity:</p>
  <pre><code> facebook_button.setOnClickListener(v-&gt;{
             Intent intent = new Intent(MainActivity.this,FacebookAuthActivity.class);
             startActivity(intent);
          });
  </code></pre>
  <p>Here is my FacebookActivity:</p>
  <p>public class FacebookAuthActivity extends MainActivity {</p>
  <pre><code>private CallbackManager mCallbackManager;
  private FirebaseAuth mAuth;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      // Initialize Facebook Login button
      mCallbackManager = CallbackManager.Factory.create();
      mAuth = FirebaseAuth.getInstance();
  
  
      facebook_button.setPermissions(&quot;email&quot;,&quot;public_profile&quot;);
      //LoginManager.getInstance().logInWithReadPermissions(this, Arrays.asList(&quot;public profile&quot;));
      facebook_button.registerCallback(mCallbackManager, new FacebookCallback&lt;LoginResult&gt;() {
          @Override
          public void onSuccess(LoginResult loginResult) {
  
              handleFacebookAccessToken(loginResult.getAccessToken());
              Intent intent = new Intent(FacebookAuthActivity.this, MapsActivity.class);
              startActivity(intent);
  
          }
  
          @Override
          public void onCancel() {
  
          }
  
  
          @Override
          public void onError(@NotNull FacebookException error) {
              error=error;
          }
      });
  
  
  }
  
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      // Pass the activity result back to the Facebook SDK
      mCallbackManager.onActivityResult(requestCode, resultCode, data);
  }
  
  private void handleFacebookAccessToken(AccessToken token) {
  
      AuthCredential credential = FacebookAuthProvider.getCredential(token.getToken());
      mAuth.signInWithCredential(credential)
              .addOnCompleteListener(this, new OnCompleteListener&lt;AuthResult&gt;() {
                  @Override
                  public void onComplete(@NonNull Task&lt;AuthResult&gt; task) {
                      if (task.isSuccessful()) {
                          // Sign in success, update UI with the signed-in user's information
                          FirebaseUser user = mAuth.getCurrentUser();
                          updateUI(user);
                      } else {
                          // If sign in fails, display a message to the user.
  
                          Toast.makeText(FacebookAuthActivity.this, &quot;Authentication failed.&quot;,
                                  Toast.LENGTH_SHORT).show();
                          updateUI(null);
                      }
                  }
              });
  </code></pre>
  <p>}</p>
  <pre><code>private void updateUI(FirebaseUser user) {
      Intent intent = new Intent(FacebookAuthActivity.this, MapsActivity.class);
      startActivity(intent);
  
  }
  </code></pre>
  <p>}</p>
  <p>I have one issue on my FB dev account its the following :
  <a href="https://i.stack.imgur.com/P1E6c.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>The message is in french so i will translate:
  &quot;issue found in the app-ads.txt , We couldn't find the URL of your web site into the description of your app&quot;.
  I dont have a site web since i just want to make an app for android.
  I tried to add the URI of my Firebase but it didn't work...</p>
  <p>Thx to anyone that can help me i'm really stuck on that.</p>