Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flickr feed problems. how to show all images from a photostream

I am using a bespoke JQuery/PHP script which parses a Flickr feed using SimpliePie and outputs an image gallery.

I have instructed my client to upload there images into their flickr account.

The images are showing but the feed seems to be limiting to 20 images, however, there are 40 images in the stream.

I have checked the API and there doesn't seem to be any paramaters to change this.

Has anyone come across this before, can anyone help me tweak the feed so that it pulls all the images in the photostream?

Here is the Flickr Stream and feed...

http://www.flickr.com/photos/44280289@N04/

http://api.flickr.com/services/feeds/photos_public.gne?id=44280289@N04&lang=en-us&format=rss_200

like image 639
Dan C Avatar asked Nov 09 '09 12:11

Dan C


1 Answers

It appears that they do limit it to the initial 20 photos on flickr

http://www.flickr.com/help/website/

Why do I only see 20 items in RSS feeds?

Flickr only shows the latest 20 items in a feed. Because of this, the first time you connect to a feed you will only see the most recent items. But if your RSS reader saves items (as most do) you will see more than 20 as the items build up over time.

But you could potentially use the flickr api, particularly http://www.flickr.com/services/api/flickr.photosets.getPhotos.html

Which allows you to get more (You will need to get an API key however)


Edit:

Though I have not personally used it I have read/heard good things about http://phpflickr.com/ which is a flickr api wrapper for php 4 and 5


Edit 2: Unfortunately I can not comment on your comment but if you take a look at this link from the flickr code blog

http://code.flickr.com/blog/2008/08/25/api-responses-as-feeds/

Some API responses can been provided as feeds so you could try using "&format=feed-rss_200" not sure if it includes getPhotos yet though.

like image 176
houmam Avatar answered Oct 10 '22 13:10

houmam