After login from Facebook automatically goes to another screen?

I have written the codes to sign in with Facebook and have everything that is needed like Facebook libraries and create an application on Facebook and everything ended in earnest and I tried the logon process and also succeeded the problem in that he moves after registering to home activity automatically although he No code to move to another screen just I want after registering successfully to move to second activity

How can I do that?

//MainActivity

public class MainActivity extends AppCompatActivity {

CallbackManager callbackManager;

LoginButton loginButton;

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

facebookSDKInitialize();

setContentView(R.layout.activity_main);

loginButton = (LoginButton) findViewById(R.id.login_button);

loginButton.setReadPermissions(Arrays.asList("public_profile","email"));

loginButton.registerCallback(callbackManager, new...

Read More »

By: StackOverFlow - 6 days ago

Related Posts