Patch for Facebook Android SDK
If you are using facebook android SDK the following patch should save you much trouble and working hours in certain scenarios. It fixes a pretty serious bug in the facebook android SDK. In Facebook.java:
public void setAccessExpiresIn(String expiresIn) {
if (expiresIn != null && !expiresIn.equals("0")) {
setAccessExpires(System.currentTimeMillis()
+ Integer.parseInt(expiresIn) * 1000);
}
+ else if (expiresIn != null && expiresIn.equals("0")) {
+ setAccessExpires(0);
+ }
}
Would like to know what is the bug this patch solves? I'll leave that for you. It is a good exercise to find out and not too complicated. Thanks.
Monday, November 29, 2010 5:47 PM