refs #110
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user