How to get photo ids of a particular album

Jan 4, 2010 at 6:49 AM

Hi there I am looking to get all the photo ids present in a album using the album id I am able to get the cover photo ids but I want all photo ids in an album my code is as shown below

            user me = api.Users.GetInfo();            
            IList<album> albums = api.Photos.GetAlbums(me.uid.Value);
            List<string> pid = new List<string>();
            int i = 1;
            foreach (album a in albums)
            {
               pid.Add(a.cover_pid);
            }

            foreach (album a in albums)
            {
                IList<photo> photos = api.Photos.Get("f9fc71b1226a095f1c3806b52bdca99", a.aid, pid);

            }

As shown above album object has only cover_pid but i want all photos ids collection in a album. plz help.

Thanks in advance.