这是我尝试从我的应用程序登录时出现的错误。
MyApp[47747:907] Failed to log in Error Domain=com.facebook.sdk Code=2
"The operation couldn’t be completed. (com.facebook.sdk error 2.)"
UserInfo=0x1c5d3c50 {com.facebook.sdk:ErrorLoginFailedReason=com.facebook.sdk:SystemLoginCancelled, com.facebook.sdk:ErrorInnerErrorKey=Error Domain=com.apple.accounts Code=7
"The Facebook server could not fulfill this access request: Invalid application [My_App_Id]"
UserInfo=0x1c5cb630 {NSLocalizedDescription=The Facebook server could not fulfill this access request: Invalid application [My_App_Id]}, com.facebook.sdk:ErrorSessionKey=<FBSession: 0x1c584800, state: FBSessionStateClosedLoginFailed, loginHandler: 0x0, appID: 589037374454169, urlSchemeSuffix: , tokenCachingStrategy:<PFFacebookTokenCachingStrategy: 0x1d0818a0>, expirationDate: (null), refreshDate: (null), attemptedRefreshDate: 0001-12-30 00:00:00 +0000, permissions:(null)>}
在另一部 iPhone 上,授权工作没有问题。我检查了在两台设备上,我的应用都启用了 Facebook 原生身份验证。
有任何想法吗?