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

Inconsistency in Photos object

Sep 1, 2009 at 6:14 PM

To get a person's photos you need to call PeopleGetPublicPhotos, this method gets int page (the page to load) and return the Photos object.

in the photos object there is a property named TotalPages typed as long. this is an inconsistency in the type of pages. and force the developer to change it to int (i'm assuming pages wont be long in the real world) all the time.




Photos p =, 100, pageNumber);
            foreach (Photo photo in p.PhotoCollection)
            if (p.TotalPages > pageNumber)



Sep 8, 2009 at 11:23 AM

I've updated all external methods and parameters to use Int32 rather than Int64, except where they deal with file sizes, as these may go over the Int32 maximum size.