Need Help – I have some code for Logout like this
public void logoutFromFacebook() {
mAsyncRunner.logout(this, new RequestListener() {
public void onComplete(String response, Object state) {
Log.d("Logout from Facebook", response);
if (Boolean.parseBoolean(response) == true) {
runOnUiThread(new Runnable() {
@Override
public void run() {
// Login button visible
btnFbLogin.setVisibility(View.VISIBLE);
// making all remaining buttons invisible
btnFbGetProfile.setVisibility(View.INVISIBLE);
btnPostToWall.setVisibility(View.INVISIBLE);
btnShowAccessTokens.setVisibility(View.INVISIBLE);
btnFbLogout.setVisibility(View.INVISIBLE);
}
});
}
}
}
But that code didnt work , when I click logout , and click login again , Im not input username and password again , I want if i click logout and when i click login again , i can input username and password again , Pleasee need solution , thanks
You have to use like this way when user press logout button you have to execute this code
The main thing is
by running this code you will be logout now you can again log in and you will get empty username and password button