Logout Feature Disable In Facebook Android Integration
I had created an Android application with Facebook integration of SDK version 4.0+. I implemented a custom Android button in my xml and on click of that button I handle the click o
Solution 1:
use shared preferences or you can also check user is exist or not. you can do like this on your button's click event.
profile = Profile.getCurrentProfile().getCurrentProfile();
if (profile != null) {
// user has logged in
LoginManager.getInstance().logOut();
} else {
// user has not logged in
loginButton.performClick();
}
Post a Comment for "Logout Feature Disable In Facebook Android Integration"