So, I am developing a simple application for a college project, and I was able to integrate Facebook login with fragments.
But now I'm stuck trying to redirect the user after logging in. I just want to redirect them to the second page of activity
Here is my code for Facebook login success
private FacebookCallback<LoginResult> mCallback=new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult loginResult) { AccessToken accessToken = loginResult.getAccessToken(); Profile profile = Profile.getCurrentProfile(); if (profile != null) { display.setText("Welcome: " + profile.getFirstName());
source share