InstaGet - Pure JavaScript library to get Instagram feed

InstaGet documentation version 2.0


Introduction


instaGet.js is a pure JavaScript library to add Instagram pohoto to your website, You can display the photos of any Instagram user and the feed will be updated with the new photos in real time.

Getting Started #back to top

Usage Example

Files

Load JS and CSS files in the html page like this:
1
2
<link rel="stylesheet" href="path/to/instaget.css">
<script src="path/to/instaget.js"></script>

HTML Markup

1
<div id="instagram-feed"/>

JavaScript Example

Call the JS library and customize it with available options, like this:

1
2
3
4
5
6
7
8
9
10
<script>
new  instaGet('#instagram-feed', {
    token: 'your_access_token',
    numcol: 3,
    info:true,
    width:'400px',
    height:'400px'
});        
</script>
Error Loading feeds! Maybe because the access token is wrong, you dont set feeds as full or you have a bad connexion!

Options#back to top

Setting Options

1
2
3
4
5
6
7
new  instaGet('#instagram-feed', {
    username: 'your_access_token',
    counter:9,
    numcol: 3,
    width:'400px',
    height:'400px',
});

Available Options

Option Value Type Default Value Available Values Description
token String "" "" Sets the ACCESS TOKEN of your account
read this article to get the access token.
info Boolean false true, false Show the profile's username.
counter Number 10 0, 1,2,3, ... Sets the number of images to load.
numcol Number 3 1,2,3, ... 8 Sets the number columns in the feed.
width Sting "100%" height on 'px' or '%' Sets the width of showcase.
height String "" height on 'px' or '%' Sets the height of showcase

Version History (Changelog) #back to top

Once again, thank you so much for purchasing this theme. As I said at the beginning, I'd be glad to help you if you have any questions relating to this JS library.


Changelog

1
2
3
4
5
6
7
8
9
10
-----------------------------------------------------------------------------------------
Version 2.0.0 - 05 April 2020
-----------------------------------------------------------------------------------------
- after Instagram make changes on its platform we re-write our plugin to still working
well with the new API.
-----------------------------------------------------------------------------------------
Version 1.0.0 - 05 April 2020
-----------------------------------------------------------------------------------------
- initial release