FacebookImagePicker-iOS icon indicating copy to clipboard operation
FacebookImagePicker-iOS copied to clipboard

Large Resolution Facebook Image

Open bcbucs13 opened this issue 9 years ago • 2 comments

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];

bcbucs13 avatar Jan 22 '16 04:01 bcbucs13

Yeah is it possible to get higher resolution?

cyanlabsid avatar May 20 '16 12:05 cyanlabsid

@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
    }];
}

vsiniak avatar Jul 12 '16 13:07 vsiniak