I have two activities. LoginActivity - > This one logs in with Facebook, running normally. And after login is called MainActivity - > In this I need to log out from facebook. How can you do it? How to bring my login information to Main and run the LoginManager.getInstance () .logOut (); ?