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

PhotoSearch does not return private photos?

Topics: Developer Forum
Feb 12, 2010 at 11:48 PM

In my app, the user logs in to Flickr and I get back the authentication information from the Flickr API.  I then create a PhotoSearchOptions object on the user's user ID and pereform a search.  But private photos do not get returned in the search.  Here is my code:

PhotoSearchOptions photoSearchOpts = new PhotoSearchOptions(m_authData.FlickrUserId);
photoSearchOpts.PerPage = 500;
photoSearchOpts.Extras = PhotoSearchExtras.All;
photoSearchOpts.UserId = m_authData.FlickrUserId;
Photos foundPhotos = FlickrObj.PhotosSearch(photoSearchOpts);

I basically want all of the logged in user's photos to be displayed.  If this is not how I get the user's photos, how then?


Feb 13, 2010 at 2:54 PM

You may ave to manually update the authentication token from your returned authentication information:


Auth auth = FlickrObj.AuthGetToken(frob);

FlickrObj.AuthToken = auth.Token;


If you are not authenticating the call correctly it defaults to returning public photos.


Feb 16, 2010 at 9:19 PM

Thank you.  You are correct, I was not authenticating correctly. When I do, then I get the private photos.