我在 facebook 应用程序设置中添加了应用程序详细信息,例如添加捆绑 ID 并启用 facebook 登录。
但我仍然遇到以下错误:
error Domain=com.facebook.sdk Code=2 "The operation couldn’t be completed. (com.facebook.sdk error 2.)" UserInfo=0x1d100770
{
com.facebook.sdk: ErrorLoginFailedReason=com.facebook.sdk: SystemLoginError,
com.facebook.sdk: ErrorInnerErrorKey=ErrorDomain=NSURLErrorDomainCode=-1202"The certificate for this server is invalid. You might be connecting to a server that is pretending to be “api.facebook.com” which could put your confidential information at risk."UserInfo=0x1d101ea0{
NSErrorFailingURLStringKey=https: //api.facebook.com/method/auth.iosauthorizeapp,
NSLocalizedRecoverySuggestion=Wouldyouliketoconnecttotheserveranyway?,
NSErrorFailingURLKey=https: //api.facebook.com/method/auth.iosauthorizeapp,
NSLocalizedDescription=Thecertificateforthisserverisinvalid.Youmightbeconnectingtoaserverthatispretendingtobe“api.facebook.com”whichcouldputyourconfidentialinformationatrisk.
},
com.facebook.sdk: ErrorSessionKey=<FBSession: 0x1c5a43a0,
state: FBSessionStateClosedLoginFailed,
loginHandler: 0x0,
appID: 504044126326670,
urlSchemeSuffix: ,
tokenCachingStrategy: <FBSessionTokenCachingStrategy: 0x1c5d1a70>,
expirationDate: (null),
refreshDate: (null),
attemptedRefreshDate: 0001-12-3000: 00: 00+0000,
permissions: (null)> }
谢谢