pierrotsmnrd / grabKit

Drop-in iOS component to easily import photos from Facebook, FlickR, Instagram, Picasa, and more
Other
395 stars 89 forks source link

Flickr SSL Error #60

Open BradB132 opened 10 years ago

BradB132 commented 10 years ago

I've downloaded grabKit, and followed all instructions. I tested my Flickr app key/secret in the demo app and it works fine.

After bringing the grabKitLib into my own project, I try run the following from one of my view controllers:

Class grabberClass = NSClassFromString(@"GRKFlickrGrabber"); GRKServiceGrabber* grabber = (GRKServiceGrabber)[[grabberClass alloc] init];
GRKPickerAlbumsList
controller = [[GRKPickerAlbumsList alloc] initWithGrabber:grabber andServiceName:@"FlickR"]; [self.navigationController pushViewController:controller animated:YES];

And I get an error, accompanied by the following console output:

2014-06-19 15:57:53.371 AppNameHere[3203:60b] an error occured trying to check if the grabber is connected : Error Domain=com.flickr Code=95 "The operation couldn’t be completed. SSL is required" UserInfo=0x145dabe0 {NSLocalizedFailureReason=SSL is required} 2014-06-19 15:58:00.348 AppNameHere[3203:60b] error in load data for service header : Error Domain=com.flickr Code=95 "The operation couldn’t be completed. SSL is required" UserInfo=0x145f5300 {NSLocalizedFailureReason=SSL is required} 2014-06-19 15:58:00.355 AppNameHere[3203:60b] error ! Error Domain=com.grabKit.FlickR.albums Code=400 "The operation couldn’t be completed. (com.grabKit.FlickR.albums error 400.)"

I've been unable to find anything useful with Googling so far. Any info on where to start would be much appreciated.

BradB132 commented 10 years ago

For anyone else who bumps into this, the issue was with Objective Flickr. In ObjectiveFlickr.m there are several #define'd URLs that need to change from http:// to https://

shantanukhanwalkar commented 10 years ago

Thanks! Faced the same issue.