Wie erhalte ich Daten, die in NSCFDictionary enthalten sind und von SLRequest unter OSX zurückgegeben wurden?
Ich mache diese Facebook-Anfrage:
SLRequest *facebookRequest = [SLRequest requestForServiceType:SLServiceTypeFacebook
requestMethod:SLRequestMethodGET
URL:[NSURL URLWithString:@"https://graph.facebook.com/fql"]
parameters:[NSDictionary dictionaryWithObject:@"SELECT uid, name, pic_square FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me())" forKey:@"q"]];
[facebookRequest setAccount:_facebookAccount];
[facebookRequest performRequestWithHandler:^(NSData* responseData, NSHTTPURLResponse* urlResponse, NSError* error) {
if(!error){
id json = [NSJSONSerialization JSONObjectWithData:responseData options:0 error:nil];
NSLog(@"%@", [json class]);
//NSCFDictionary. How can i get the data that's inside this?
}else{
NSLog(@"error fb");
}
}];
Überlegungen zum Abrufen der Daten im NSCFDictionary? ich habe es versucht[json valueforKey...]
aber nichts