OceanLabs / FacebookImagePicker-iOS

A Facebook image picker providing a simple UI for a user to pick photos from a users Facebook account. It provides an image picker interface that matches the iOS SDK's UIImagePickerController.
https://www.kite.ly
MIT License
103 stars 56 forks source link

Large Resolution Facebook Image #16

Open bcbucs13 opened 8 years ago

bcbucs13 commented 8 years ago

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];
cyanlabsid commented 8 years ago

Yeah is it possible to get higher resolution?

vsiniak commented 7 years ago

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