This project has moved. For the latest updates, please go here.


May 13, 2010 at 1:36 PM
I'm using the method GalleriesGetList, but returns no gallery. But there's 03 galleries created. This method works?
May 13, 2010 at 3:58 PM

According to my unit tests it works fine yes. Could you perhaps tell us who you are on Flickr, or what user you are searching for?

May 13, 2010 at 8:45 PM
Edited May 13, 2010 at 8:45 PM

 used as follows:


private static readonly string Apikey = ConfigurationManager.AppSettings.Get("api");
private static readonly string Segredo = ConfigurationManager.AppSettings.Get("sec");

public static GalleryCollection GetGalerias()
            var flickr = new Flickr(Apikey, Segredo);

            GalleryCollection galerias = flickr.GalleriesGetList(ConfigurationManager.AppSettings.Get("UserId"), 0, 100);

            return galerias ?? new GalleryCollection();
In debug mode I see that the return is always 0, does not give any error, just do not think any gallery, and as already mentioned has created 03 galleries and photos. When I search photos only works perfect 
May 14, 2010 at 9:01 AM

Firstly, I still don't know who you are on Flickr or what User ID you are searching for.

Secondly, I would either not pass the page and perPage variables, or pass 1 and 100, but not 0 and 100. I've tried that via the Flickr API Explorer and it still returns values for me, but it might not be for you.

If you tell me the user ID you are using then I can try and see if it is Flickr that is not returning anything, or a problem in my code (I'm gonna say the former however).


May 14, 2010 at 10:51 AM
Edited May 14, 2010 at 10:53 AM

<add key="UserId" value="49964450@N02"/>

Thank you for your attention

May 14, 2010 at 11:19 AM

Err - you don't have any galleries?

You appear to be confusing galleries with photosets:

For sets use Flickr.PhotosetsGetList()


May 14, 2010 at 1:29 PM

Now I understand, thank you!

May 19, 2010 at 8:48 PM see in that there are two albums, and on my site so a list.
following code I'm using, what is wrong can:

var flickr = new Flickr(Apikey, Segredo);
PhotosetCollection galerias = flickr.PhotosetsGetList(ConfigurationManager.AppSettings.Get("UserId"));
return galerias ?? new PhotosetCollection()

May 20, 2010 at 8:29 AM

My apologies, that is a bug in the code.

I have just released Beta 2 which fixes this issue.


May 20, 2010 at 12:37 PM

No need to apologize.
tested with the beta and it worked perfect.
Thanks, if I can help on something, I'm Willing I am on a project on codeplex open here as well. this:

May 22, 2010 at 3:04 PM

out of nowhere started giving error only in the online application.
running on localhost ta working perfect

Jun 1, 2010 at 12:27 PM

What error? I don't see any error on the page you linked to.


Jan 21, 2011 at 2:07 PM


I am trying to add photo to newly created Gallery. I have used following code to serve the purpose:

My Flickr User Id: 17898562@N04

String photoId = flickr.UploadPicture("default.JPG", "Default", "team photo", "", true, false, false);
photo = photos.First(aa => aa.PhotoId == photoId);
flickr.GalleriesCreate("Team", "Team Photo");
galary = flickr.GalleriesGetList(auth.User.UserId).Where(aa => aa.Title == "Team").ToList()[0];
flickr.GalleriesAddPhoto(galary.GalleryId, photoId);

Error: Failed to add photo (5)

Please let me know the resolution.




Jan 21, 2011 at 2:16 PM

I don't believe you can add your own photos to your own galleries. Galleries are for showcasing other peoples photos. If you want to group your own photos you should be using photosets.


Jan 21, 2011 at 2:38 PM

Thanks Sam,

I will update my implementation. Thanks for your quick response. :-)