Right now am making a Facebook application for iPad. I am currently loading the wall of the user into a tableview. The problem is when it encounters an image, Facebook is retuning a low-resolution of the image. So to fix this issue, I found this Answer, But How would I do that in the iOS SDK? because when I get a Facebook result and then determine the object ID, and then re-query Facebook, how would I get them into the NSArray like referred to in the above answer. Thanks.
Easy, it is delivered to you as an NSArray! You just need to know how to access it from the result object:
- (void)request:(FBRequest *)request didLoad:(id)result {
// here's the array
NSArray *images = [result objectForKey:@"images"];
//then here's some bonus code for looping through them
for (NSDictionary *image in images) {
NSLog(@"source url=%@", [image objectForKey:@"source"]);
//height and width parameters are also available
}
}