Search code examples
instafeedjs

instafeedjs doesn't work on my site


I'm trying to set up instafeedjs but it doesn't work.

script type="text/javascript" src="/instafeed.min.js"></script>
     <script>
  var feed = new Instafeed({
  clientId: '377e47596dcf4fc284d36fe0098700ba',
  useHttp: true
  });
  feed.run();
</script>

Solution

  • Please make sue the, you have done the following steps in your code.

    1. Added a div tag with id "instafeed"
    2. Mapped the instafeed.js library correctly.

    Refer the code blog below for more info.

      var feed = new Instafeed({
      clientId: '377e47596dcf4fc284d36fe0098700ba',
      useHttp: true
      });
      feed.run();
    <script src="http://sriajith.info/wp-content/uploads/2015/05/instafeed.min_.js"></script>
    <div id="instafeed"/>