i force fb to check if account info is still valid when the user clicks on "Facebook Sign In" after the initially sign in.
This commit is contained in:
2011-02-15 16:09:19 +00:00
parent 44e32e4a14
commit 3c1415e059
3 changed files with 14 additions and 14 deletions

View File

@@ -115,13 +115,13 @@ public class TravelPost extends PreferenceActivity implements OnPreferenceClickL
e.printStackTrace();
}
} else if (preference.getKey().equals("facebook_sign_in")) {
FacebookAuth fbAuth = new FacebookAuth(this, new Activity());
/*
* force facebook to re-check login info,
* if the last account information is valid, then fb does not ask for users info
*/
getSharedPreferences("facebook-session", 0).edit().clear().commit();
FacebookAuth fbAuth = new FacebookAuth(this, this);
fbAuth.authorize();
// try {
// mFbAuth.postToWall("Another test");
// } catch (SessionNotValidException e) {
// e.printStackTrace();
// }
}
return false;