java.lang.Throwable:Facebook登录时的堆栈转储

时间:2014-12-05 03:38:41

标签: android facebook dump

以下是我使用Facebook登录时发生错误的地方:

session.openForRead(new Session.OpenRequest(this).setCallback(statusCallback).setPermissions(Arrays.asList("email")));

以下是错误日志:

java.lang.Throwable: stack dump
    at java.lang.Thread.dumpStack(Thread.java:489)
    at com.facebook.Session.addCallback(Session.java:813)
    at com.facebook.Session.open(Session.java:1234)
    at com.facebook.Session.openForRead(Session.java:471)
    at FacebookAuthFragment.onCreateView(FacebookAuthFragment.java:62)
    at android.support.v4.app.Fragment.performCreateView(Fragment.java:1504)
    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:942)
    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1121)
    at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
    at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1484)
    at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:450)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:149)
    at android.app.ActivityThread.main(ActivityThread.java:5268)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
    at dalvik.system.NativeStart.main(Native Method)

java.lang.Throwable: stack dump
    at java.lang.Thread.dumpStack(Thread.java:489)
    at com.facebook.Session.addCallback(Session.java:813)
    at com.facebook.UiLifecycleHelper.onResume(UiLifecycleHelper.java:108)
    at FacebookAuthFragment.onResume(FacebookAuthFragment.java:96)
    at android.support.v4.app.Fragment.performResume(Fragment.java:1547)
    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:978)
    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1121)
    at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
    at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1484)
    at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:450)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:149)
    at android.app.ActivityThread.main(ActivityThread.java:5268)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
    at dalvik.system.NativeStart.main(Native Method)

我在AndroidManifest和String中声明了appid。

有人知道发生了什么吗?非常感谢。

1 个答案:

答案 0 :(得分:0)

我们解码Facebook会话时出错了。解决了这个问题之后,问题就解决了。