How to retrieve the picture profile of a group ?

Topics: Developer Forum
Feb 14, 2010 at 3:25 PM

Hi ! :)

First of all, thank you for your great API ! I've just started with your API and I need to know how to retrieve the picture of a group.

I've tried with FlickrNet.GroupFullInfo and the IconServer but this one is all the time null.

Can you help me ?

Thanks for your support and this API :)

John

Coordinator
Feb 16, 2010 at 12:24 PM

Sorry for the delay in replying.

I've checked and I hadn't implemented this correctly. I've just added the IconServer and IconFarm to the GroupFullInfo class, as well as a new GroupIconUrl property that should return the correct details.

This is checked into the latest source.

Sam

Feb 16, 2010 at 2:32 PM

Dear Sam,

Thank you for your quick implementation ! :)

I've tested it and it doesn't work all the time: For example the GroupId="562176@N20" and its GroupIconUrl = "http://farm0.static.flickr.com/0/buddyicons/562176@N20.jpg" It's the case when a group doesn't have a GroupIconUrl defined.

Is it possible that the GroupIconUrl = "http://flickr.com/buddyicons/562176@N20.jpg" and this is redirected to http://l.yimg.com/g/images/buddyicon.jpg#562176@N20  ?

Regards,

John

Coordinator
Feb 16, 2010 at 2:39 PM
Ah yes, if there is no server ID then it must redirect to the default
icon. I'll update that.
Feb 16, 2010 at 3:33 PM

It works now :)

Thank u,

John