<!--
A feed of favorite photos from each of my Flickr Contacts.
If a "username" input if specified, the contacts of that user will be used instead.
-->

<!-- Set channel properties -->
<rsb:set item="_meta" attr="rss:title" value="RSSBus:  Flickr Contacts' Favorite Photos" />
<rsb:set item="_meta" attr="rss:description">
A feed of favorite photos from each of your Flickr contacts.  Just specify your username in the querystring (http://textbox1.com/examples/FlickrContactsFavorites.rsb?username=lmrobins
</rsb:set>

<rsb:set attr="username" value="[username | def('lmrobins')]" />
<rsb:set attr="pagesize" value="[pagesize | def('0')]" />

<!--I set the RSS guid element equal to the user NSID and the concatenation of the faved photo IDs-->

<rsb:pipe autopush="false">
  <rsb:call op="flickrNSID" />
  <rsb:call op="flickrContacts" />
  <rsb:call op="flickrFavorites" pagesize="5" />
  <rsb:push title="Favorite from [_out2.username] entitled [title]">
    <a href="http://www.flickr.com/photos/[_out3.owner]/[id]">
    <img src="http://farm[farm].static.flickr.com/[server]/[id]_[secret]_m.jpg" border="0">
    </a><br />
    Favorite from [_out2.username] entitled [title]
  </rsb:push>
</rsb:pipe>