Đối tượng lỗi trở có các chi tiết về những gì đang xảy ra. Tôi đề nghị để thực hiện phương pháp đó để có thêm infos:
- (void)request:(FBRequest *)request didFailWithError:(NSError *)error {
NSLog(@"%@", [error localizedDescription]);
NSLog(@"Err details: %@", [error description]);
};
Ví dụ cho vấn đề của tôi gived tôi các thông tin đó, và tôi đã cố định nó:
2011-05-27 11:19:57.313 Challengein[7704:207] The operation couldn’t be completed. (facebookErrDomain error 10000.)
2011-05-27 11:19:57.314 Challengein[7704:207] Err details: Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x6878b90 {error=<CFBasicHash 0x6879be0 [0x141c400]>{type = mutable dict, count = 2,
entries =>
2 : <CFString 0x6877f70 [0x141c400]>{contents = "type"} = <CFString 0x686f9a0 [0x141c400]>{contents = "OAuthException"}
3 : <CFString 0x686d610 [0x141c400]>{contents = "message"} = <CFString 0x686f970 [0x141c400]>{contents = "(#100) picture URL is not properly formatted"}
}
}
Ví dụ, bản thân tôi đã thay đổi URL đăng từ 'feed' thành' ảnh'. Một khi tôi lật nó trở lại vấn đề đã được giải quyết. –