0

我想为我的应用程序获取用户访问令牌以访问登录用户的照片等。我创建了一个login button在facebook SDK SDK教程中给出。我能够获取我的管理员帐户的访问令牌,该帐户在Facebook上创建此应用程序。Facebook本机Android API为非管理员用户生成错误

但是,当我与任何其他帐号登录,就抛出异常如下:

我不明白我在做什么错。理想情况下,所有其他人应该能够登录到这个应用程序。我正在模拟器上测试它。这可能是一个问题吗?程序创建时其实

05-03 01:29:09.618: W/fb4a:fb:OrcaServiceQueue(352): Exception during service 
05-03 01:29:09.618: W/fb4a:fb:OrcaServiceQueue(352): com.facebook.orca.protocol.base.ApiException: Invalid application 332039450257790 
05-03 01:29:09.618: W/fb4a:fb:OrcaServiceQueue(352): at com.facebook.orca.protocol.base.ApiResponseChecker.b(ApiResponseChecker.java:74) 
05-03 01:29:09.618: W/fb4a:fb:OrcaServiceQueue(352): at com.facebook.orca.protocol.base.ApiResponseChecker.a(ApiResponseChecker.java:103) 
05-03 01:29:09.618: W/fb4a:fb:OrcaServiceQueue(352): at com.facebook.orca.protocol.base.ApiResponse.g(ApiResponse.java:208) 
05-03 01:29:09.618: W/fb4a:fb:OrcaServiceQueue(352): at com.facebook.katana.server.protocol.AuthorizeAppMethod.a(AuthorizeAppMethod.java:267) 
05-03 01:29:09.618: W/fb4a:fb:OrcaServiceQueue(352): at com.facebook.katana.server.protocol.AuthorizeAppMethod.a(AuthorizeAppMethod.java:28) 
05-03 01:29:09.618: W/fb4a:fb:OrcaServiceQueue(352): at com.facebook.orca.protocol.base.SingleMethodRunner.a(SingleMethodRunner.java:125) 
05-03 01:29:09.618: W/fb4a:fb:OrcaServiceQueue(352): at com.facebook.katana.server.handler.PlatformOperationHandler.c(PlatformOperationHandler.java:274) 
05-03 01:29:09.618: W/fb4a:fb:OrcaServiceQueue(352): at com.facebook.katana.server.handler.PlatformOperationHandler.a(PlatformOperationHandler.java:175) 
05-03 01:29:09.618: W/fb4a:fb:OrcaServiceQueue(352): at com.facebook.orca.server.OrcaServiceQueue.d(OrcaServiceQueue.java:218) 
05-03 01:29:09.618: W/fb4a:fb:OrcaServiceQueue(352): at com.facebook.orca.server.OrcaServiceQueue.d(OrcaServiceQueue.java:38) 
05-03 01:29:09.618: W/fb4a:fb:OrcaServiceQueue(352): at com.facebook.orca.server.OrcaServiceQueue$3.run(OrcaServiceQueue.java:169) 
05-03 01:29:09.618: W/fb4a:fb:OrcaServiceQueue(352): at android.os.Handler.handleCallback(Handler.java:587) 
05-03 01:29:09.618: W/fb4a:fb:OrcaServiceQueue(352): at android.os.Handler.dispatchMessage(Handler.java:92) 
05-03 01:29:09.618: W/fb4a:fb:OrcaServiceQueue(352): at android.os.Looper.loop(Looper.java:123) 
05-03 01:29:09.618: W/fb4a:fb:OrcaServiceQueue(352): at android.os.HandlerThread.run(HandlerThread.java:60) 
05-03 01:29:09.628: W/fb4a:fb:GDPDialog(352): Failed to send 
05-03 01:29:09.628: W/fb4a:fb:GDPDialog(352): com.facebook.orca.ops.ServiceException: API_ERROR: API_ERROR 
05-03 01:29:09.628: W/fb4a:fb:GDPDialog(352): at com.facebook.orca.ops.OrcaServiceOperation.c(OrcaServiceOperation.java:610) 
05-03 01:29:09.628: W/fb4a:fb:GDPDialog(352): at com.facebook.orca.ops.OrcaServiceOperation.c(OrcaServiceOperation.java:40) 
05-03 01:29:09.628: W/fb4a:fb:GDPDialog(352): at com.facebook.orca.ops.OrcaServiceOperation$2.run(OrcaServiceOperation.java:575) 
05-03 01:29:09.628: W/fb4a:fb:GDPDialog(352): at android.os.Handler.handleCallback(Handler.java:587) 
05-03 01:29:09.628: W/fb4a:fb:GDPDialog(352): at android.os.Handler.dispatchMessage(Handler.java:92) 
05-03 01:29:09.628: W/fb4a:fb:GDPDialog(352): at android.os.Looper.loop(Looper.java:123) 
05-03 01:29:09.628: W/fb4a:fb:GDPDialog(352): at android.app.ActivityThread.main(ActivityThread.java:4627) 
05-03 01:29:09.628: W/fb4a:fb:GDPDialog(352): at java.lang.reflect.Method.invokeNative(Native Method) 
05-03 01:29:09.628: W/fb4a:fb:GDPDialog(352): at java.lang.reflect.Method.invoke(Method.java:521) 
05-03 01:29:09.628: W/fb4a:fb:GDPDialog(352): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 
05-03 01:29:09.628: W/fb4a:fb:GDPDialog(352): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 
05-03 01:29:09.628: W/fb4a:fb:GDPDialog(352): at dalvik.system.NativeStart.main(Native Method) 
+0

我需要查看哪些可能导致此错误的两件事:1)我现在禁用了我的应用程序的沙箱模式。 2)我没有发布我的应用程序进行审查,可能会导致此问题,但我不确定。 – Junaid 2013-05-03 01:55:37

回答

2

,我错误地选择其只限制到开发商的应用程序配置页面添加应用程序的访问“沙盒”模式。因此,在禁用此模式后,我也能够为其他用户生成访问令牌。

相关问题