0

これは、オフライン モードで Facebook から情報を取得しようとしたときに発生したエラーです: ([エラーの説明])

Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)" 
UserInfo=0x13f76dd0 {com.facebook.sdk:ErrorInnerErrorKey=Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo=0x13f76860 {NSErrorFailingURLStringKey=https://graph.facebook.com/me/?
fields=name,location,gender,birthday,relationship_status&sdk=ios&migration_bundle=fbsdk%3A20121003&format=json&access_token=xxx, NSErrorFailingURLKey=https://graph.facebook.com/me/?
fields=name,location,gender,birthday,relationship_status&sdk=ios&migration_bundle=fbsdk%3A20121003&format=json&access_token=xxx, NSLocalizedDescription=The Internet connection appears to be offline., 
NSUnderlyingError=0x13e86790 "The Internet connection appears to be offline."}, com.facebook.sdk:HTTPStatusCode=200}

私はこれを取得したい:The Internet connection appears to be offline.

これも私が望むものを手に入れませんでした:

NSString *description = [error localizedDescription];
NSString *message = [error localizedRecoverySuggestion];

このエラーはfacebook sdk error 5. ([エラーコード] = 5)

手伝って頂けますか?

4

1 に答える 1

0

試す

NSError* underlyingError = [[error userInfo] valueForkey:NSUnderlyingErrorKey];
NSString* description = [underlyingError localizedDescription];
于 2012-11-11T22:30:37.783 に答える