I'm developing an Android application, with Android Studio, using Firebase initially for user authentication.
The code is too long, so I will not copy it here, but it's available at Github .
The Google login has already been implemented, the user logs in, goes to the home screen where they choose a room, and when they enter the room, a chat window appears where they can send messages, including photos and profile names Of google.
I'm now implementing a Facebook login based on the Firebase and Facebook , I have already followed all the setup steps on developers.facebook.com, such as application id, key hash etc, plus the creation of the login button with Facebook.
The login is practically functional, the user enters with his account through the standard window of Facebook, however when finishing the login, the application returns to the initial screen. That is, it takes the information but does not go to the next activity (the MainActivity, where the rooms are).
I and the other developers of the app are students and beginners in Android programming, so I think it's something simple but we can not fix it. For being beginners also ask that if someone answers, please explain in what file would be the modification, the tutorial of Facebook is a bit vague about it. Thank you very much in advance.