Getting started


From Snowfire Wiki

Jump to: navigation, search

Add flickr photos to your website with the following javascript (works inside templates and containers)

<div id="flickrBadge"></div>
<script type="text/javascript">
	$.getJSON("", function(data) {
		for (i = 0; i < 8; i++) {
			item = data.items[i];
			var baseimg =;
			var thumbimg = baseimg.replace("_m.jpg", "_s.jpg");
			var lgeimg = baseimg.replace("_m.jpg", "_b.jpg");   
			$("<img />")
				.attr("src", thumbimg)
				.wrap("<a href='" + + "'></a>");

What to change

  • Change 49887732@N07 to your flickr id . (use this tool to convert your username to an id:
  • Inside you have three different variables (baseimg, thumbimg and lgeimg) representing three different image sizes. I'm using the smallest one.

This example is also available in In the social video tutorial

Personal tools