Advanced JavaScript library for professional Instagram feed integration
Version 3.0instaGet is an advanced JavaScript library that provides seamless integration with Instagram's Graph API, offering professional-grade features for displaying Instagram feeds on your website.
Include the instaGet files in your HTML page:
<!-- CSS (for default styling) -->
<link rel="stylesheet" href="path/to/instaGet.css">
<!-- JavaScript -->
<script src="path/to/instaGet.js"></script>
<div id="instagram-feed"></div>
// Basic initialization
new instaGet('#instagram-feed', {
token: 'YOUR_ACCESS_TOKEN',
counter: 9,
columns: {
desktop: 3,
tablet: 2,
mobile: 1
},
showUserInfo: true,
lightbox: true
});
Grid, Sidebar, and Footer layouts with responsive design
Show profile info with customizable styles
Professional lightbox for images and videos
Optimized for all devices and screen sizes
Lazy loading and efficient resource management
Modern, Classic, and Minimal themes available
new instaGet('#instagram-feed', {
// API Configuration
token: 'YOUR_ACCESS_TOKEN',
counter: 9,
// Layout Options
columns: {
desktop: 3,
tablet: 2,
mobile: 1
},
width: '100%',
height: 'auto',
spaceImage: '10px', // Space between images in pixels
// User Info Display
showUserInfo: true,
userInfoStyle: 'full', // 'full', 'minimal', 'username-only'
showStats: true,
// Content Options
showCaptions: false,
captionLength: 100,
// Interactive Features
lightbox: true,
lazyLoad: true,
animations: true,
loadMore: false,
});
Option | Type | Default | Description |
---|---|---|---|
token |
String | "" | Instagram Graph API access token (required) |
counter |
Number | 9 | Number of posts to display |
width |
string or number | '100%' or specific width in px | Container width |
height |
string or number | 'auto' or specific height in px | Container height |
columns |
Object | {desktop: 3, tablet: 2, mobile: 1} | Responsive column configuration |
showUserInfo |
Boolean | true | Display user profile information |
userInfoStyle |
String | 'full' | User info style: 'full', 'minimal', 'username-only' |
showStats |
Boolean | true | Show follower/following statistics |
showCaptions |
Boolean | false | Display post captions |
captionLength |
Number | 100 | Maximum caption length |
lightbox |
Boolean | true | Enable lightbox functionality |
lazyLoad |
Boolean | true | Enable lazy loading for images |
animations |
Boolean | true | Enable entrance animations |
loadMore |
Boolean | false | Enable load more functionality |
spaceImage |
Number | 10px | Space between images by number of pixels |
Method | Parameters | Description |
---|---|---|
updateSettings(options) |
Object | Update configuration and reload feed |
refresh() |
None | Refresh the Instagram feed |
destroy() |
None | Remove the feed and clean up |
openLightbox(url, type) |
String, String | Manually open lightbox |
closeLightbox() |
None | Close the lightbox |
// Initialize and store reference
const instagram = new instaGet('#feed', {
token: 'YOUR_TOKEN',
counter: 6
});
// Update settings
instagram.updateSettings({
counter: 12,
});
// Refresh feed
instagram.refresh();
// Clean up
instagram.destroy();