Ios 使用facebook sdk启动ForUploadPhoto时,此服务器的证书无效错误

Ios 使用facebook sdk启动ForUploadPhoto时,此服务器的证书无效错误,ios,objective-c,facebook,Ios,Objective C,Facebook,我的代码如下: [FBRequestConnection startForUploadPhoto:[UIImage imageNamed:@"1.png"] completionHandler:^(FBRequestConnection *connection, id result, NSError *error) { if (error) { NSLog(@"%@",error); } }]; 错误是: Error Do

我的代码如下:

    [FBRequestConnection startForUploadPhoto:[UIImage imageNamed:@"1.png"] 
        completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
    if (error) {
          NSLog(@"%@",error);
     }
    }];
错误是:

Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)" UserInfo=0x933e390 {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=0x9338700 {NSErrorFailingURLStringKey=https://graph.facebook.com/me/photos?sdk=ios&access_token=BAAEPZAb5iLukBADkyh9M8guUFRJwXuGKI6HnZAZAwMvpQtv3RKsD6M62J4inW1oG8DmY5l81pIz4MhcRHMbLsUAlxEqWq557pYCHXqoF9Gv3FdRTrV9Ai3QuL6zBeM7OoSWvOKlFt1fZAx5h0wkh&migration_bundle=fbsdk%3A20121003&format=json, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, NSErrorFailingURLKey=https://graph.facebook.com/me/photos?sdk=ios&access_token=BAAEPZAb5iLukBADkyh9M8guUFRJwXuGKI6HnZAZAwMvpQtv3RKsD6M62J4inW1oG8DmY5l81pIz4MhcRHMbLsUAlxEqWq557pYCHXqoF9Gv3FdRTrV9Ai3QuL6zBeM7OoSWvOKlFt1fZAx5h0wkh&migration_bundle=fbsdk%3A20121003&format=json, 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=0xa32e810 "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=}, com.facebook.sdk:HTTPStatusCode=200} 错误域=com.facebook.sdk代码=5“操作无法完成。(com.facebook.sdk错误5)” UserInfo=0x933e390{com.facebook.sdk:ErrorInnerErrorKey=ErrorDomain=NSURlerErrorDomain代码=-1202 “此服务器的证书无效。您可能正在连接到一个假装是的服务器 “graph.facebook.com”,这可能会使您的机密信息面临风险。” UserInfo=0x9338700{NSErrorFailingURLStringKey=https://graph.facebook.com/me/photos?sdk=ios&access_token=BAAEPZAb5iLukBADkyh9M8guUFRJwXuGKI6HnZAZAwMvpQtv3RKsD6M62J4inW1oG8DmY5l81pIz4MhcRHMbLsUAlxEqWq557pYCHXqoF9Gv3FdRTrV9Ai3QuL6zBeM7OoSWvOKlFt1fZAx5h0wkh&migration_bundle=fbsdk%3A20121003&format=json, nsLocalizedRecoverysSuggestion=是否仍要连接到服务器?, N错误失效键=https://graph.facebook.com/me/photos?sdk=ios&access_token=BAAEPZAb5iLukBADkyh9M8guUFRJwXuGKI6HnZAZAwMvpQtv3RKsD6M62J4inW1oG8DmY5l81pIz4MhcRHMbLsUAlxEqWq557pYCHXqoF9Gv3FdRTrV9Ai3QuL6zBeM7OoSWvOKlFt1fZAx5h0wkh&migration_bundle=fbsdk%3A20121003&format=json, NSLocalizedDescription=此服务器的证书无效。您可能正在连接假装为“graph.facebook.com”的服务器,这可能会使您的机密信息面临风险。, NSUnderlyingError=0xa32e810“此服务器的证书无效。您可能正在连接到服务器。” 假装是“graph.facebook.com”的服务器,可能会将您的机密信息置于危险之中, NsurErrorFailingUrlPeerTrustErrorKey=},com.facebook.sdk:HTTPStatusCode=200}
我该怎么解决呢?

我终于改变了我的网络,它开始工作了。