I just installed and deployed the module and noticed that it was not fetching the photos with the respective tags.
I proceeded to search for the tag on Flickr directly and noticed that the search found the photos uploaded with the respective machine tag only when I was searching in my own photostream (not also when I was searching globally). Perhaps this was because my account is new, but I believe this might affect older users too.
I have managed to get the photos to appear on my Drupal site instantly by adding my Flickr user ID to the API query:
$params = array(
'api_key' => _flickr_nodes_variable('api_key'),
'method' => 'flickr.photos.search',
'user_id' => '33954674@N07',
'tags' => flickr_node_get_tag($node),
'format' => 'php_serial',
'page' => $page,
);
I suggest adding a User ID field to the module configuration and using this ID in the API queries to get reliable results.
According to the Flickr API documentation, it is also possible to use 'me' in the user_id parameter, but I have received errors when I tried to do this. Maybe using 'me' requires authentication...
Comments
Comment #1
tobiassjosten commentedThis is most likely because of Flickr's delay/caching. With a new account it might take quite some time before your tags are indexed. I also recall Flickr having some limit (5 photos?) you need to reach before it even considers your photos, though I can't seem to find the bookmark to that information at this time.
Check out the Machine tag browser and pick an arbitrary tag to use for testing. Unless this wont work, I'm considering this a limitation of Flickr. Using an user ID defeats the intentions of this module, because it would show tagged pictures from a specific users perspective, and not from a more global one.