0

我安装了最新的 3.5.1 Facebook sdk,并运行 HelloFacebookSample 示例,得到这个错误。

这可能是网络问题,我改变了我的网络。问题仍然出现。

> FBLoginView encountered an error=Error Domain=com.facebook.sdk Code=5 "
> The operation couldn’t be completed. (com.facebook.sdk error 5.)" UserInfo=0x9478eb0 
> {com.facebook.sdk:ErrorInnerErrorKey=Error Domain=NSURLErrorDomain Code=-1202 "
> The certificate for this server is invalid. 
> You might be connecting to a server that is pretending to be “graph.facebook.com” which could put your confidential information at risk." UserInfo=0x9487810 

> {NSErrorFailingURLStringKey=https://graph.facebook.com/me?sdk=ios&migration_bundle=fbsdk%3A20130409&format=json&access_token=CAAFDDRlIT2wBABhZCkQEYkQUT7ierG3pnw8O70QwZBJbda6m4KHDiJ4FUDsf8xo4Wy4MCjDrvx6DSxD1QTfWIS1EL7Uty7p8yiOxZBaF3LZBW9tmyA4nWUunLMDkvoaSkMy1AZCLLraZBCVGPYO7D19DQsc4Bu7QjPfVs6jiTZAeQZDZD, 
> NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, 
> NSErrorFailingURLKey=https://graph.facebook.com/me?sdk=ios&migration_bundle=fbsdk%3A20130409&format=json&access_token=CAAFDDRlIT2wBABhZCkQEYkQUT7ierG3pnw8O70QwZBJbda6m4KHDiJ4FUDsf8xo4Wy4MCjDrvx6DSxD1QTfWIS1EL7Uty7p8yiOxZBaF3LZBW9tmyA4nWUunLMDkvoaSkMy1AZCLLraZBCVGPYO7D19DQsc4Bu7QjPfVs6jiTZAeQZDZD, 
> NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “graph.facebook.com” which could put your confidential information at risk., 
> NSUnderlyingError=0xa454f20 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “graph.facebook.com” which could put your confidential information at risk.", 
> NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x947acb0>}, 
> com.facebook.sdk:HTTPStatusCode=200, 
> com.facebook.sdk:ErrorSessionKey=<FBSession: 0x13c542e0, state: FBSessionStateOpen, loginHandler: 0x9478ef0, appID: 355198514515820, urlSchemeSuffix: , 
> tokenCachingStrategy:<FBSessionTokenCachingStrategy: 0x947dc90>,
> expirationDate: 2013-07-26 03:08:40 +0000,
>  refreshDate: 2013-05-27 05:55:46 +0000, 
> attemptedRefreshDate: 0001-12-30 00:00:00 +0000, permissions:(
>)>}

Facebook 样本有什么问题?

更重要的是

相同的 Facebook 登录代码在上个月成功运行。从上周开始,我之前的所有项目都没有登录 Facebook。

4

0 回答 0