Logout do facebook SDK 4.+

Asked

Viewed 37 times

0

I have two activities. Loginactivity -> this login with facebook, working normally. And after the login is called the Mainactivity -> In this I need to log out from facebook. How is it possible to do it? How to bring my login information to Main and run Loginmanager.getInstance(). logout(); ?

  • If you are using a custom facebook button is that way same.

  • I’m getting an error Mainactivity}: java.lang.Nullpointerexception: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$Onclicklistener)' on a null Object Reference .. On the login screen I used the facebook button of the SDK

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.