我搜索了很多,但我没有看到真正的解决方案。有人说,使用前Facebook的SDK,它是真正的解决办法?(我使用Facebook 3.6但有人说,在计算器使用3.2)我使用ProGuard的,
com.facebook.aq:com.facebook.c.f得到了一个意想不到的方法签名:公共抽象的java.lang.Object com.facebook.c.c.e()在com.facebook.c.h.a(来源不明)在com.facebook.c.f.invoke(来源不明)在$ Proxy0.e(本机方法)在com.facebook.b.al.a(来源不明)在com.facebook.b.al.a(来源不明)在com.facebook.f.run(来源不明)在java.util.Timer中的$ TimerImpl.run(Timer.java:284)
解决方案
您应该使用最新的 的Facebook SDK
,你应该使用密码 app_secret 是这样的:
字符串的access_token =共享prefs.getString(的access_token,app_secret); 龙期满=共享prefs.getLong(access_expires,-1); mFacebook.setAccessToken(的access_token); mFacebook.setAccessExpires(到期);
(我想bacause你有问题就在首次登录问题得以解决)
I searched very much but I did not see the real solution. Somebody says use ex facebook sdk , is it the real solution?(I use facebook 3.6 but somebody says on stackoverflow use 3.2) I use proguard,
com.facebook.aq: com.facebook.c.f got an unexpected method signature: public abstract java.lang.Object com.facebook.c.c.e()
at com.facebook.c.h.a(Unknown Source)
at com.facebook.c.f.invoke(Unknown Source)
at $Proxy0.e(Native Method)
at com.facebook.b.al.a(Unknown Source)
at com.facebook.b.al.a(Unknown Source)
at com.facebook.f.run(Unknown Source)
at java.util.Timer$TimerImpl.run(Timer.java:284)
解决方案
You should use the latest facebook sdk
and you should login with using
app_secret like this :
String access_token = sharedPrefs.getString("access_token", app_secret );
Long expires = sharedPrefs.getLong("access_expires", -1);
mFacebook.setAccessToken(access_token);
mFacebook.setAccessExpires(expires);
(I think this solves your problem bacause you have a problem just the first login )