我爲我的iOS應用程序運行以下Facebook FQL。它給我的錯誤:Facebook FQL - 錯誤:操作無法完成。 (com.facebook.sdk錯誤5.)
**Error: The operation couldn’t be completed. (com.facebook.sdk error 5.)**
我已測試的權限,他們似乎很好。此外,Facebook應用程序(開發人員部分)中的包ID與應用程序中的包ID相匹配。我如何解決這個問題?
NSString *query =
@"SELECT recipient_id, title_text, notification_id, object_id FROM notification WHERE recipient_id = me() and is_unread = 1";
// Set up the query parameter
NSDictionary *queryParam =
[NSDictionary dictionaryWithObjectsAndKeys:query, @"q", nil];
// Make the API request that uses FQL
[FBRequestConnection startWithGraphPath:@"/fql"
parameters:queryParam
HTTPMethod:@"GET"
completionHandler:^(FBRequestConnection *connection,
id result,
NSError *error) {
if (error) {
NSLog(@"Error: %@", [error localizedDescription]);
} else {
NSLog(@"Result: %@", result);
notifications = [result objectForKey:@"data"];
//NSLog(@"%d", [array count]);
NSString *notificationPressed = [NSString stringWithFormat:@" %d unread notifications", [notifications count]];
[self.fliteController say:notificationPressed withVoice:self.slt];
}
}];
也許你可以解釋一下,通過提供關於端口配置的支持證據,你可以相信這是防火牆問題。 – 2013-06-19 14:25:19
我正在使用TCPBlock。將我的應用程序從阻止列表移到白名單中解決了我的問題。 – 2013-06-19 15:06:36