Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large Resolution Facebook Image #16

Open
bcbucs13 opened this issue Jan 22, 2016 · 2 comments
Open

Large Resolution Facebook Image #16

bcbucs13 opened this issue Jan 22, 2016 · 2 comments

Comments

@bcbucs13
Copy link

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
Copy link

Yeah is it possible to get higher resolution?

@vsiniak
Copy link

vsiniak commented Jul 12, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants