我得到这个错误第一次尝试登录facebook.How可以解决这个? [英] I got this error for first attempt to login facebook.How can solve this?
本文介绍了我得到这个错误第一次尝试登录facebook.How可以解决这个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我搜索了很多,但我没有看到真正的解决方案。有人说,使用前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 )
这篇关于我得到这个错误第一次尝试登录facebook.How可以解决这个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文