FlickrKit icon indicating copy to clipboard operation
FlickrKit copied to clipboard

"This Photo Is No Longer Available" Returned everytime

Open JPROFFICIAL opened this issue 8 years ago • 1 comments

Hey there, first off I want to thank you for creating this fantastic API. Easy methods and great documentation. Thank you sir.

Here is the call I am making

let searchList = FKFlickrPhotosSearch() searchList.per_page = "5" searchList.text = cityNme -> (This can be San Francisco, etc.) FlickrKit.sharedFlickrKit().call(searchList) { (response, err) in dispatch_async(dispatch_get_main_queue(), { () -> Void in if (response != nil) { // Pull out the photo urls from the results let topPhotos = response["photos"] as! [NSObject: AnyObject] let photoArray = topPhotos["photo"] as! [[NSObject: AnyObject]] let topPhoto = photoArray.first let photoURL = FlickrKit.sharedFlickrKit().photoURLForSize(FKPhotoSizeOriginal, fromPhotoDictionary: topPhoto) } }) }

This call for a basic PhotosSearch has consistently given me photos that are no longer available (or so it says after they are loaded).

Some clarification would help on this one. From what I've read, you do not need to have an auth to query for regular photos.

Update: Even on an FKFlickrInterestingnessGetList() call, all photos returned are no longer available.

Any help would be wonderful. Thanks!

JPROFFICIAL avatar Dec 31 '16 00:12 JPROFFICIAL

After further examination, It seems that FKPhotoSizeMedium500, as well as a few others return URL's such as https://farm6.static.flickr.com/5577/15070603679_a559ea18a2_.jpg - which returns a invalid photo

This was the cause of the problem.

I used FKPhotoSizeMedium640 and it is working perfectly.

JPROFFICIAL avatar Dec 31 '16 01:12 JPROFFICIAL