I'm using the instafeed.js API. I wanted that instead of appearing all the photos in the same div appeared one per div. I tried to use this example but it did not work: example instafeed.js on various divs , create multiple instances of instafeed, one for each div. Any ideas?
instafeed:
var feed = new Instafeed({
target: 'instafeed1',
get: 'tagged',
tagName: 'pizza',
clientId: '*******',
limit: 1
});
var feed = new Instafeed({
target: 'instafeed2',
get: 'tagged',
tagName: 'pizza',
clientId: '******',
limit: 1
});
var feed = new Instafeed({
target: 'instafeed3',
get: 'tagged',
tagName: 'pizza',
clientId: '******',
limit: 1
});
var feed = new Instafeed({
target: 'instafeed4',
get: 'tagged',
tagName: 'pizza',
clientId: '******',
limit: 1
});
var feed = new Instafeed({
target: 'instafeed5',
get: 'tagged',
tagName: 'pizza',
clientId: '******',
limit: 1
});
var feed = new Instafeed({
target: 'instafeed6',
get: 'tagged',
tagName: 'pizza',
clientId: '******',
limit: 1
});
instafeed1Feed.run();
instafeed2Feed.run();
instafeed3Feed.run();
instafeed4Feed.run();
instafeed5Feed.run();
instafeed6Feed.run();
HTML:
<div id="where1">
<div></div>
<div id="instafeed1"></div>
<div id="instafeed2"></div>
<div id="instafeed3"></div>
<div id="instafeed4"></div>
</div>
<div id="where5">
<div></div>
<div></div>
<div></div>
<div></div>
<div id="instafeed5"></div>
<div id="instafeed6"></div>
</div>