I want to add Instafeed.js on my Magento 2 theme. How to write correct JS?

<script type="text/javascript">
    var feed = new Instafeed({
        get: 'tagged',
        tagName: 'awesome',
        clientId: 'YOUR_CLIENT_ID'
  • 5
    I'm voting to close this question as off-topic because this is about the javascript SDK of an instagram plugin, not about Magento specific code Jun 1, 2016 at 8:58
  • Hi @SanderMangel i'm not developer, so i wanna know how to code js for magento.
    – Rawi Rai
    Jun 1, 2016 at 11:08
  • I feel your comment is very broad and you're not aware of the docs, they do a very good job of explaining how to add your own JS. I recommend using Require JS which is built in to Magento 2 - devdocs.magento.com/guides/v2.0/javascript-dev-guide/javascript/…
    – Ben Crook
    Jun 1, 2016 at 12:12
  • Hi @Ben-Space48 thank you for replay. but it won't help me. i've already try my best way. i'm just Photoshop and CSS guy. it will be great help and thanks if you provide me proper code.
    – Rawi Rai
    Jun 2, 2016 at 11:59
  • There are already questions for this, I have answered one here - magento.stackexchange.com/questions/114248/…
    – Ben Crook
    Jun 2, 2016 at 12:42


Browse other questions tagged or ask your own question.