var feed = new Instafeed({
accessToken: InstagramToken,
limit: 12,
template: '{{image_html}}',
transform: function (imageData){
var imageHTML = '';
console.log(imageData);
var images = imageData.model.children;
if(imageData.type === 'album'){
imageHTML += '
'
for (var key in images){
for (var data in images[key]){
imageHTML += ''
}
}
imageHTML += '
'
} else {
imageHTML += ''
}
imageData['image_html'] = imageHTML;
return imageData;
},
after: function() {
$('.lightSlider').lightSlider({
gallery: false,
item: 1,
loop: true,
slideMargin: 0,
});
}
});
feed.run();