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:
@@ -43,16 +43,16 @@ public final class R {
|
|||||||
}
|
}
|
||||||
public static final class string {
|
public static final class string {
|
||||||
public static final int about=0x7f050007;
|
public static final int about=0x7f050007;
|
||||||
public static final int app_name=0x7f050000;
|
public static final int app_name=0x7f050001;
|
||||||
public static final int fb_signin=0x7f050005;
|
public static final int fb_signin=0x7f050005;
|
||||||
public static final int gps_fix=0x7f050001;
|
public static final int gps_fix=0x7f050002;
|
||||||
public static final int hello=0x7f050003;
|
public static final int hello=0x7f050000;
|
||||||
public static final int location_settings=0x7f050006;
|
public static final int location_settings=0x7f050006;
|
||||||
public static final int post_hint=0x7f05000b;
|
public static final int post_hint=0x7f05000b;
|
||||||
public static final int post_settings=0x7f050008;
|
public static final int post_settings=0x7f050008;
|
||||||
public static final int save_a_post=0x7f050009;
|
public static final int save_a_post=0x7f050009;
|
||||||
public static final int services=0x7f05000a;
|
public static final int services=0x7f05000a;
|
||||||
public static final int sorry_theres_trouble=0x7f050002;
|
public static final int sorry_theres_trouble=0x7f050003;
|
||||||
public static final int twitter_signin=0x7f050004;
|
public static final int twitter_signin=0x7f050004;
|
||||||
}
|
}
|
||||||
public static final class xml {
|
public static final class xml {
|
||||||
|
|||||||
@@ -43,16 +43,16 @@ public final class R {
|
|||||||
}
|
}
|
||||||
public static final class string {
|
public static final class string {
|
||||||
public static final int about=0x7f050007;
|
public static final int about=0x7f050007;
|
||||||
public static final int app_name=0x7f050000;
|
public static final int app_name=0x7f050001;
|
||||||
public static final int fb_signin=0x7f050005;
|
public static final int fb_signin=0x7f050005;
|
||||||
public static final int gps_fix=0x7f050001;
|
public static final int gps_fix=0x7f050002;
|
||||||
public static final int hello=0x7f050003;
|
public static final int hello=0x7f050000;
|
||||||
public static final int location_settings=0x7f050006;
|
public static final int location_settings=0x7f050006;
|
||||||
public static final int post_hint=0x7f05000b;
|
public static final int post_hint=0x7f05000b;
|
||||||
public static final int post_settings=0x7f050008;
|
public static final int post_settings=0x7f050008;
|
||||||
public static final int save_a_post=0x7f050009;
|
public static final int save_a_post=0x7f050009;
|
||||||
public static final int services=0x7f05000a;
|
public static final int services=0x7f05000a;
|
||||||
public static final int sorry_theres_trouble=0x7f050002;
|
public static final int sorry_theres_trouble=0x7f050003;
|
||||||
public static final int twitter_signin=0x7f050004;
|
public static final int twitter_signin=0x7f050004;
|
||||||
}
|
}
|
||||||
public static final class xml {
|
public static final class xml {
|
||||||
|
|||||||
@@ -115,13 +115,13 @@ public class TravelPost extends PreferenceActivity implements OnPreferenceClickL
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
} else if (preference.getKey().equals("facebook_sign_in")) {
|
} 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();
|
fbAuth.authorize();
|
||||||
// try {
|
|
||||||
// mFbAuth.postToWall("Another test");
|
|
||||||
// } catch (SessionNotValidException e) {
|
|
||||||
// e.printStackTrace();
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user