flickr.people.getInfo and PhotosSummary.PhotoCount problem

Topics: Developer Forum, Project Management Forum, User Forum
Jun 10, 2011 at 9:21 AM

hi all,

I have a problem with PhotosSummary.PhotoCount . The value sometime return incorrect . Any of PhotoCount is  not same as the number of photo in contact list .

Anyone have problem like me ? .

thanks all

Coordinator
Jun 10, 2011 at 10:03 AM

The code just displays whatever is returned by the Flickr API.

Maybe they have photos that you can't see, are private or restricted in other ways. Have you authenticated?

Sam

Jun 24, 2011 at 4:19 AM

hi Sam,

Could you plesae say more about authenticated . App's authenticated ?? . I don't see any document talk about authenticated for apps .

Coordinator
Jun 24, 2011 at 9:48 AM

Well authentication is a big topic, so I'm surprised you haven't come across it yet, as its mentioned everywhere.

Unfortunately the Flickr API is in the process of moving over to OAuth, so the Flickr docs are out of sync with what the FlickrNet library supports, but you can look at the example app or the coding for fun article here:

http://flickrnet.codeplex.com/wikipage?title=Examples&referringTitle=Home

Sam

Jun 24, 2011 at 10:09 AM

hi Sam,

Like i said above . I can get the photo from user that's mean I just read authentication  on Flickr's document .

Here my code

public Person GetPhotoFromUser(string accessToken, string UserID)
        {
            Flickr flickr = new Flickr(apiKey, secretCode, accessToken);
           Person photos = flickr.PeopleGetInfo(UserID);
           return photos;
        }
 
.....

flickrContact.Count = photos.PhotosSummary.PhotoCount;

 

Unfortanately the number of photos from any account , which have more than 200 photos,  is incorrect . 
Coordinator
Jun 24, 2011 at 10:21 AM

Can you give me an example please, as I'm having trouble understanding what you mean.

Non-pro users only have access to the most recent 200 photos, so that might be the issue perhaps?

Sam

Jun 24, 2011 at 11:04 AM

hi Sam

here my code

public int numberPhotoFromUser()
{
Person photos = GetPhotoFromUser(AccessToken, UserId);
flickrContact.Count = photos.PhotosSummary.PhotoCount;
}

 public Person GetPhotoFromUser(string accessToken, string UserID)
        {
            Flickr flickr = new Flickr(apiKey, secretCode, accessToken);
            Person photos = flickr.PeopleGetInfo(UserID);
            return photos;
        }

 

the value I get :

komomiji9 200 photos ( but in contact list from Flicks website is 313 photos )

leeahnduk 203 photos ( in flicks website is 203 photos )

lehuynhphamnguyen 200 photos ( in flicks website is  272 photos)

NamPhan 202 photos ( in flickr website is 211 photos)

my account id in flickr "63724412@N02"

 

Coordinator
Jun 24, 2011 at 12:11 PM

Well that is definitely related to the fact that none of them are Pro users. I don't know why Flickr is returning 203 and 202 for those two users, as it should be 200 like the others.

Sorry, I can't help you anymore. You'll need to post on the Flickr API group or mailing list if you want any more information, but I doubt you'll get much of a response.

Sam