Team:UCL E/fancybox/jquery.fbAlbum.js
From 2013.igem.org
(function($){
$.fn.fbAlbum = function(options) { var $this = this; var settings = { 'albumID' : 10150302289698306, 'limit' : 100,
'ulClass' : 'album', 'callback' : , 'title' : true
}; if(options){$.extend( settings, options );} var graph = "https://graph.facebook.com/" + settings.albumID + "/photos?limit=" + settings.limit + "&callback=?"; $.getJSON(graph, function(data) { var albumItem = []; for(var key in data){ for(var key2 in data[key]){ val2=data[key][key2]; if(typeof(val2.source)!="undefined"){
var title =""; if ( settings.title && val2.name ){ title = val2.name }
albumItem.push('