In my Android application, I integrated the facebook login, which works fine. Later I set up the login button, which also works without any problems. When the user clicks the facebook login button, he successfully allows the user to log in without any problems. But the problem is that when the user is logged in, instead of moving on to the next action, he displays the same login page with the facebook button with the exit text on the facebook login button, and then proceeds to the next action. See image below: 
This is a custom facebook login button that works fine. See the image below after logging in: 
It displays the output text on the button, and then proceeds to the next step. I want to go directly to the next step, and not display this login button with the text "Exit". How can I do it.? Any help .. !! Here is my code below:
XML code:
<com.facebook.login.widget.LoginButton xmlns:fb="http://schemas.android.com/apk/res-auto" android:id="@+id/login_button" android:layout_width="wrap_content" android:layout_height="wrap_content" fb:login_text="" android:layout_gravity="center"/>
MainActivity.java
loginButton = (LoginButton)findViewById(R.id.login_button); loginButton.setBackgroundResource(R.drawable.fb); loginButton.setCompoundDrawablesWithIntrinsicBounds(null, null, null, null); loginButton.setCompoundDrawablePadding(0); loginButton.setPadding(0, 0, 0, 0); loginButton.setText(""); loginButton.setReadPermissions(permissionNeeds); loginButton.registerCallback(callbackManager,new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult loginResult) { GraphRequest request = GraphRequest.newMeRequest(AccessToken.getCurrentAccessToken(), new GraphRequest.GraphJSONObjectCallback() { @Override public void onCompleted(JSONObject user, GraphResponse response) { if(user !=null) { String firstName = user.optString("first_name"); String lastName = user.optString("last_name"); String email = user.optString("email"); Intent i1 = new Intent(getApplicationContext(),FacebookData.class); i1.putExtra("first",firstName); i1.putExtra("last",lastName); i1.putExtra("email",email); startActivity(i1); } } }); Bundle parameters = new Bundle(); parameters.putString("fields", "id,first_name,last_name,email"); request.setParameters(parameters); request.executeAsync(); }