This project has moved and is read-only. For the latest updates, please go here.

how to return a Photo by Photo_ID or Photo_URL

Topics: Developer Forum
Aug 25, 2010 at 2:58 PM

How can I return a photo using its Photo_ID or Photo_URL

Aug 25, 2010 at 3:04 PM

Well they are both the same question really, as the URL for a photo contains the photo ID.

It depends what information you want about that photo. You are probably either wanting or (PhotosGetInfo or PhotosGetSizes).

It really does pay to go to the Flickr API page and try to learn what the methods there do.


Aug 25, 2010 at 3:17 PM
Edited Aug 25, 2010 at 3:22 PM

I have already used I have now the photo id and the photo url in my database.

 I want a method that takes the photo id and return the actual photo itself to be displayed on my website.




Aug 25, 2010 at 3:21 PM

If you have the 'url' then is that not it?

Aug 25, 2010 at 3:29 PM

how can I display just the photo not the whole web page using the URL

Aug 25, 2010 at 3:40 PM

You probably want the PhotoInfo.MediumUrl or PhotoInfo.ThumbnailUrl (or one of the other similar "URL" properties) then.

Aug 25, 2010 at 4:13 PM

Thanks so much, thats exactly what I want