what I am trying to do here is to get the latest posts from instagram and than store the Id of the users who liked my post. I am using instafeed.js for my development. I have tried reading a lot of post for "how to grab a value from an ajax call" like : how to grab return value from an ajax call? , How do I return the response from an asynchronous call? But still haven't figured how to use a callback on my code. An answer would be much appreciated. Thanks!
var userFeed = new Instafeed({
get: 'user',
userId: 'xxx',
clientId: 'xxxx',
accessToken: 'xxxx',
resolution: 'thumbnail',
template: '<a href="{{link}}" target="_blank" id="{{id}}"><div class="insta_story"><img class="insta_foto" src="{{image}}" /><span class="likes_and_comment">{{likes}} - {{comments}}</span></a></div>',
sortBy: 'most-recent',
limit: 20,
links: false,
success : function mediaData(data){
console.log(data);
}
});
userFeed.run();
What I would like now is to get the data object that contains my information.