FacebookImagePicker-iOS
FacebookImagePicker-iOS copied to clipboard
Large Resolution Facebook Image
How do you get a higher resolution image from Facebook? I tried changing this line to get the larger image size from the Facebook Graph
- (void)getPhotos:(OLFacebookPhotosForAlbumRequestHandler)handler {
if ([FBSDKAccessToken currentAccessToken]) {
// connection is open, perform the request
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
NSString *graphPath = [NSString stringWithFormat:@"%@/photos?fields=picture.type(large),source,images&limit=100", self.album.albumId];
Also Tried
NSString *graphPath = [NSString stringWithFormat:@"%@/photos?fields=picture?type=large,source,images&limit=100", self.album.albumId];
Yeah is it possible to get higher resolution?
@bcbucs13, @cyanlabsid, OLFacebookImage object contains large image URL in fullURL field.
- (void)facebookImagePicker:(OLFacebookImagePickerController *)imagePicker didSelectImage:(OLFacebookImage *)facebookImage {
[[SDWebImageManager sharedManager] downloadImageWithURL:facebookImage.fullURL options:SDWebImageHighPriority progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {
// process image
}];
}