Trouble Implementing Instagram Feed 1.5.4
kenreeser opened this issue · comments
I recently downloaded and implemented version 1.5.4 of your Instagram Feed script and having trouble getting it work. Below is a screenshot of the console errors and just below is my implementation code:
Script:
<script src="js/InstagramFeed.min.js"></script> <script>
(function(){
new InstagramFeed({
'username': 'mickeygillcreative',
'container': document.getElementById("instagram-feed"),
'display_profile': false,
'display_biography': false,
'display_gallery': true,
'display_captions': false,
'callback': null,
'styling': true,
'items': 8,
'items_per_row': 4,
'margin': 1,
'image_size': 480,
'lazy_load': true,
'on_error': console.error
});
})();
</script>
Check this #103 (comment)
And #103 (comment)
- The current version is 2.0.1, yours is outdated.
- According to the documentation, your line
'container': document.getElementById("instagram-feed"),
should look like
'container': '#instagram-feed',
- You can read more about the error in the console and find a solution here #103
Thanks very much for your assistance and info.
Where can I download the 2.0.1 vanilla javascript version?
https://github.com/jsanahuja/InstagramFeed
Note: latest vanilla version 1.5.4
and the caching feature is not implemented in this plugin at this time.
Well, this repository is a jQuery version. So my answer is not correct for a vanilla JavaScript version. But the comments from #106 (comment) are relevant for a vanilla JavaScript version too.
Well, I stand corrected: the vanilla version I had was actually 1.4.0. I got the 1.5.4 from the package.json file.
Upon examining the unminified InstagramFeed.js file, it reads version 1.4.0.