Search for Group Photos

Flickr offers a wide variety of photo support and user participation. Users can comment on each other's photos, so it comes as no suprise that Flickr has allowed users to join together into groups that share the same interests. If you're a fan of crazy costumed fans at KISS concerts, you can find others who share their recent Gene Simmons and gang photos on Flickr. Let's see how you can view it by using the Zend_Service_Flickr component.

You need the group ID, which you find by doing a search for a group. Head to the Flickr site and do a quick search for Kiss Army. If nothing comes up, don't worry; click the Groups tab on top of the page. You should now see the KISS ARMY group. Give it a click and watch the photos come up. Great; so now what? The following URLs represent two that you might see for a group: http://flickr.com/groups/kissarmy/ and http://flickr.com/groups/642715@N22/.

One is the kissarmy URL; the other is the Pedro Infante group, which does not have a resolved group ID; it has a numerical representation of the group ID. You can use either as the group ID. Listing 713 shows how to get the group photos.

Listing 7-13. GroupPoolGetPhotos Example public function testFlickrGroupsAction() {

try{

$flickr = new Zend_Service_Flickr('API_KEY');

$photos = $flickr->groupPoolGetPhotos("kissarmy");

0 0

Post a comment

  • Receive news updates via email from this site