jsanahuja / jquery.instagramFeed

Instagram Feed without access token. Not using the Instagram API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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>

image

  1. The current version is 2.0.1, yours is outdated.
  2. According to the documentation, your line
    'container': document.getElementById("instagram-feed"),
    should look like
    'container': '#instagram-feed',
  3. You can read more about the error in the console and find a solution here #103

Thanks very much for your assistance and info.

@mahotilo
Where can I download the 2.0.1 vanilla javascript version?

@mahotilo
Never mind, silly question, I found the link. Thx again.

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.