A Drupal implementation of Flickr API is implemented via Flickr module.

Requirements

Components

Flickr
Flickr API wrapper. Does not provide a user interface on its own, but offers a framework for contrib modules to leverage Flickr API. Provides PHP implementation for Flickr's RESTful image and album search, acquisition, meta information, and manipulation functions.

Flickr Filter
Implements a filter syntax for including flickr images in filtered text. For example, "[flickr-photo:id=230452326,size=m]" generates an <img> tag for flickr photo 230452326 with medium size.

Flickr Field
Provides a CCK field for flickr images. Editors can insert a flickr photo id and user id to add flickr images as fields.

Flickr Block
Implements various blocks to expose flickr images on your site. For example, "recent flickr photos", "random photos", or "user page recent photos".

Flickr Sets
Adds a basic user-based flickr set implementation and theming functions for flickr sets (albums).

Flickr Tags
Adds basic user-based tag list, tag cloud, and tag theming functions for flickr tags.

Contrib

Flickr Attach
Image Attach-like implementation for flickr. Allows admins to assigns a flickr image as a property of the node. Will be deprecated in favor of Flickr Field in Drupal 7.x.

Installation and configuration

  1. Download Flickr module to your modules directory (DRUPAL-ROOT/sites/all/modules, DRUPAL-ROOT/sites/default/modules, DRUPAL-ROOT/sites/example.com/modules, etc).
  2. Enable Flickr module and any other components at http://example.com/admin/build/modules
  3. Configure the Flickr API Key http://example.com/admin/settings/flickr
  4. Update permissions http://example.com/admin/user/access
  5. Optional, as applicable

Gotchas

  1. Forgetting to configure flickr. Please obtain your Flickr API key and configure Flickr module at admin/settings/flickr. Otherwise, you'll get warnings and notices and errors like "Flickr error 1: User not found" and "Flickr error 2: Unknown user".
  2. Using your flickr username instead of your flickr user id. In flickr settings (admin/settings/flickr), you need to input your flickr user id (that is, an ID of the form 12345678@N90). idGettr is a handy site if you're having trouble finding your flickr user id. If you have configured flickr but get errors like "Flickr error 1: User not found" and "Flickr error 2: Unknown user", this may be the cause.
  3. No photos or sets exist. Flickr will throw errors like "Flickr error 1: Photo not found", "Flickr error 1: Photoset not found", or "Flickr error 3: Parameterless searches have been disabled." unless you have uploaded some images to flickr.
  4. No public photos or sets exist. Flickr module only offers support for public photos. It is possible to use Flickr API with private photos, but Flickr module developers do not with to support the feature (see #116586: Private Photos).
  5. Others: please review the Flickr module issue queue.