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

"This Photo Is No Longer Available" Returned everytime #52

Open
JPROFFICIAL opened this issue Dec 31, 2016 · 1 comment
Open

"This Photo Is No Longer Available" Returned everytime #52

JPROFFICIAL opened this issue Dec 31, 2016 · 1 comment

Comments

@JPROFFICIAL
Copy link

JPROFFICIAL commented Dec 31, 2016

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

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.

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

1 participant