I'm trying to add the instaFeed on my web app but I got this error:
instafeed.min.js:1 Uncaught SyntaxError: Unexpected token <
I think it's because I don't add correctly the script but yeah I can't find what's wrong :
And in my Javascript I create a feed like this when I click on a button:
'click #goToInstagramFeed'(event){
setTimeout(function(){
var feed = new Instafeed({
get: 'tagged',
tagName: 'awesome',
clientId: 'myId'
});
console.log("dans le script");
feed.run();
window.scrollTo(0,200);
}, 5000)
}
Thank you
Script tags do not work when placed inside Blaze template. In Meteor to use 3rd party JS library, you could either:
<head>
or <body>
tagclient/compatibility
folder so that they will be bundled automatically