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

Is there a way to get 'Photo' details...

Topics: Developer Forum
Nov 19, 2011 at 6:02 PM

Hi.. I'd like to get a specific 'Photo' by it's PhotoId and was wondering if there was a function to do this without having to get a 'PhotoCollection' and iterate through it.  I know about the 'PhotoInfo' class but it does not contain the same information as the 'Photo' class.

Nov 19, 2011 at 9:56 PM

No, there is no way to get a Photo instance, rather than a PhotoInfo instance for a single photo.

What properties of the Photo class are you wanting that aren't available on the PhotoInfo class?


Nov 19, 2011 at 10:27 PM

I need Photo.SmallWidth and Photo.SmallHeight for sure... I may need the MediumWidth and MediumHeight as well.

Nov 20, 2011 at 3:19 PM
Edited Nov 20, 2011 at 3:20 PM

You would have to call PhotosGetSizes to get that information.


Nov 21, 2011 at 7:04 PM

That worked out fine Sam... I just used the async call to photosgetsizes and was able to use the PhotoInfo with some help from the SizeCollection.  Thanks!!