0

当我连接尝试连接到Facebook.

我从 android 模拟器单击 facebook 登录按钮 它像往常一样向我显示 Facebook 的登录页面,一切正常。

但是,当我尝试在我的Galaxy S2It 上运行它时,它在 logcat 中显示了一个异常(一周前一切运行良好,没有任何异常——我也能够Facebook从移动设备和 Android 模拟器连接)

今天,我只能用安卓模拟器登录,我不知道我的安卓设备不能连接什么。

这是日志猫:

05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725): com.facebook.http.protocol.ApiException: remote_app_id does not match stored id 
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at com.facebook.http.protocol.ApiResponseChecker.b(ApiResponseChecker.java:74)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at com.facebook.http.protocol.ApiResponseChecker.a(ApiResponseChecker.java:103)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at com.facebook.http.protocol.ApiResponse.h(ApiResponse.java:208)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at com.facebook.katana.server.protocol.AuthorizeAppMethod.a(AuthorizeAppMethod.java:266)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at com.facebook.katana.server.protocol.AuthorizeAppMethod.a(AuthorizeAppMethod.java:27)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at com.facebook.http.protocol.SingleMethodRunnerImpl.a(SingleMethodRunnerImpl.java:141)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at com.facebook.http.protocol.AbstractSingleMethodRunner.a(AbstractSingleMethodRunner.java:16)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at com.facebook.katana.server.handler.PlatformOperationHandler.c(PlatformOperationHandler.java:284)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at com.facebook.katana.server.handler.PlatformOperationHandler.a(PlatformOperationHandler.java:185)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at com.facebook.orca.server.OrcaServiceQueue.d(OrcaServiceQueue.java:248)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at com.facebook.orca.server.OrcaServiceQueue.d(OrcaServiceQueue.java:49)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at com.facebook.orca.server.OrcaServiceQueue$3.run(OrcaServiceQueue.java:193)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at java.util.concurrent.FutureTask.run(FutureTask.java:137)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at com.facebook.common.util.HandlerExecutorServiceImpl$ListenableScheduledFuture.run(HandlerExecutorServiceImpl.java:268)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at android.os.Handler.handleCallback(Handler.java:605)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at android.os.Handler.dispatchMessage(Handler.java:92)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at android.os.Looper.loop(Looper.java:137)
05-03 00:31:52.750: W/fb4a(:<default>):fb:OrcaServiceQueue(9725):   at android.os.HandlerThread.run(HandlerThread.java:60)
05-03 00:31:52.785: W/fb4a(:<default>):fb:GDPDialog(9725): Failed to send
05-03 00:31:52.785: W/fb4a(:<default>):fb:GDPDialog(9725): com.facebook.orca.ops.ServiceException: API_ERROR: API_ERROR
05-03 00:31:52.785: W/fb4a(:<default>):fb:GDPDialog(9725):  at com.facebook.orca.ops.OrcaServiceOperation.c(OrcaServiceOperation.java:616)
05-03 00:31:52.785: W/fb4a(:<default>):fb:GDPDialog(9725):  at com.facebook.orca.ops.OrcaServiceOperation.c(OrcaServiceOperation.java:41)
05-03 00:31:52.785: W/fb4a(:<default>):fb:GDPDialog(9725):  at com.facebook.orca.ops.OrcaServiceOperation$2.run(OrcaServiceOperation.java:581)
05-03 00:31:52.785: W/fb4a(:<default>):fb:GDPDialog(9725):  at android.os.Handler.handleCallback(Handler.java:605)
05-03 00:31:52.785: W/fb4a(:<default>):fb:GDPDialog(9725):  at android.os.Handler.dispatchMessage(Handler.java:92)
05-03 00:31:52.785: W/fb4a(:<default>):fb:GDPDialog(9725):  at android.os.Looper.loop(Looper.java:137)
05-03 00:31:52.785: W/fb4a(:<default>):fb:GDPDialog(9725):  at android.app.ActivityThread.main(ActivityThread.java:4575)
05-03 00:31:52.785: W/fb4a(:<default>):fb:GDPDialog(9725):  at java.lang.reflect.Method.invokeNative(Native Method)
05-03 00:31:52.785: W/fb4a(:<default>):fb:GDPDialog(9725):  at java.lang.reflect.Method.invoke(Method.java:511)
05-03 00:31:52.785: W/fb4a(:<default>):fb:GDPDialog(9725):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
05-03 00:31:52.785: W/fb4a(:<default>):fb:GDPDialog(9725):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
05-03 00:31:52.785: W/fb4a(:<default>):fb:GDPDialog(9725):  at dalvik.system.NativeStart.main(Native Method)
4

1 回答 1

1

您需要将您的官方应用程序(市场版本)添加到 facebook 仪表板,然后使用他们为您提供的相同 API KEY 进行连接,否则版本将无法正常工作。

您也可以在 facebook 中创建您的应用程序的开发/暂存版本,并在开发您的应用程序时使用它,但 SDK 告诉您您为 FB SDK 提供的 API 密钥与该密钥不匹配他们在网站上为您的应用程序签名。

于 2013-05-02T23:31:14.153 回答