本文介绍了IOS:com.facebook.sdk错误5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用最后一个Facebook SDK为IOS,但我总是得到这个错误:操作无法完成。 (com.facebook.sdk错误5.)请问你有什么想法吗?
谢谢。

Am using the last Facebook SDK for IOS but I always get this error : The operation couldn’t be completed. (com.facebook.sdk error 5.) Please do you have any idea about that ?Thank You.

[[FBRequest requestForMe] startWithCompletionHandler:^(FBRequestConnection *connection, NSDictionary<FBGraphUser> *user, NSError *error) {
    if (!error) {
        NSLog(@"%@",user.name);
        //self.emailLabel.text = [user objectForKey:@"email"];
    } else {
        NSLog(@"%@",error.localizedDescription);
    }
}]; 


推荐答案

我已经通过这样做解决了这种问题:

I have solved this kind of issue by doing this :

[FBSession setActiveSession:session];

谢谢 !

这篇关于IOS:com.facebook.sdk错误5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 18:37