Trying to grab all of the users Facebook friends information which I can successfully do via a batch request:
NSString *jsonRequest1 = @"{ \"method\": \"GET\", \"relative_url\": \"me/friends?fields=name,picture\" }";
NSString *jsonRequestsArray = [NSString stringWithFormat:@"[%@]", jsonRequest1];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObject:jsonRequestsArray forKey:@"batch"];
[facebook requestWithGraphPath:@"me" andParams:params andHttpMethod:@"POST" andDelegate:self];
The profile pictures are small in size (50x50) and i need to specify the size of the photos. I've been looking at the graph API docs and i'm struggling to tie the two together - here's the related link: http://developers.facebook.com/docs/reference/api/user/
It says to add the following parameters to the request but like i said, i'm not sure how to tie the two together:
picture?type=large
I'm sure it would work for a single request for a particular user but i'm having no luck through a batch request.
Thanks for your help, it's probably staring me in the face!
This is possible by adding a height and width parameter to the URL. FB will attempt to provide you an image that matches your width and height criteria. Your batch would look something like this: