Instafeed.js
Instafeed.js is a simple way to display your Instagram photos on your website. This plugin has been already used in Matrix Themes and now it's available with the latest version 2.
Official documentation:
https://github.com/stevenschobert/instafeed.js
1. Facebook app and test user setup
To authorize Instafeed.js to fetch your media you'll need to create a Facebook app, and add your Instagram user account as a test user:
Instagram User Access Tokens are valid for 60 days and can be refreshed as long as they are at least 24 hours old but have not expired.
2. Adding Instafeed.js to your web page
The next steps assume:
3. Paste the below code to your website (Widget/HTML) by adding your own Instagram token.
style01
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/stevenschobert/instafeed.js@2.0.0rc1/src/instafeed.min.js"></script>
<script type="text/javascript">
//<![CDATA[
jQuery.noConflict();
(function($) {
// Init
$(document).ready(function() {
var feed = new Instafeed({
accessToken: 'Your instagram token goes here',
limit: 6,
template: '<div class="instamatrix col-4 add-5 cc-box" style="display:inline-block;"><a href="http://instagram.com/{{model.user.username}}" target="_blank">{{model.user.username}}<\/a><a href="{{link}}" title="{{caption}}" target="_blank"><img src="{{image}}" alt="{{caption}}" class="w-100"/><\/a><\/div>'
});
feed.run();
});
})(jQuery);
//]]>
</script>
<div id="instafeed" class="col-12">
</div>
style02
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/stevenschobert/instafeed.js@2.0.0rc1/src/instafeed.min.js"></script>
<script type="text/javascript">
//<![CDATA[
jQuery.noConflict();
(function($) {
// Init
$(document).ready(function() {
var feed = new Instafeed({
accessToken: 'Your instagram token goes here',
limit: 4,
target: 'instafeed2',
template: '<div class="instamatrix w-100"><a href="http://instagram.com/{{model.user.username}}" target="_blank">{{model.user.username}}<\/a><a href="{{link}}" title="{{caption}}" target="_blank"><img src="{{image}}" alt="{{caption}}" class="w-100"/><\/a><\/div>'
});
feed.run();
});
})(jQuery);
//]]>
</script>
<div id="instafeed2" class="is--flex is-flex-block no-padding is-fullwidth is-matrix-block">
</div>
style03
@hotelperugino
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/stevenschobert/instafeed.js@2.0.0rc1/src/instafeed.min.js"></script>
<script type="text/javascript">
//<![CDATA[
jQuery.noConflict();
(function($) {
// Init
$(document).ready(function() {
var feed = new Instafeed({
accessToken: 'Your instagram token goes here',
limit: 5,
target: 'instafeed3',
template: '<div class="instamatrix col-4 add-20 cc-box"><a href="http://instagram.com/{{model.user.username}}" target="_blank">{{model.user.username}}<\/a><a href="{{link}}" title="{{caption}}" target="_blank"><img src="{{image}}" alt="{{caption}}" class="w-100 mid-round"/><\/a><\/div>'
});
feed.run();
});
})(jQuery);
//]]>
</script>
<div class="hs-description color-white cc-clearover add-5 bg-dark">
<div class="left-align">
<div class="fa fa-instagram">
<p class="size-16 weight-500">
@hotelperugino
</p>
</div>
</div>
</div>
<div id="instafeed3" class="is--flex is-flex-block no-padding is-matrix-block bg-white has-shadow cc-clearover">
</div>
Style04
Maecenas egestas arcu quis ligula mattis placerat. Vestibulum rutrum, mi nec elementum vehicula, eros quam gravida nisl, id fringilla neque ante vel mi. Fusce egestas elit eget lorem. Nullam quis ante. Fusce ac felis sit amet ligula pharetra condimentum.
<div class="is-matrix is-fullwidth bg-dark" style="background:#003be0;">
<div class="is-flex is-flex-block mobile-auto cc-clearover">
<div class="col-6">
<div id="instafeed4" class="col-12">
</div>
</div>
<div class="mobile-auto col-6 m-padding cc-box is--flex" style="padding:5%;">
<div class="color-white" style="max-width:800px; margin:0 auto;">
<h3>
Instagram
</h3>
<br />
<p>
Maecenas egestas arcu quis ligula mattis placerat. Vestibulum rutrum, mi nec elementum vehicula, eros quam gravida nisl, id fringilla neque ante vel mi. Fusce egestas elit eget
lorem. Nullam quis ante. Fusce ac felis sit amet ligula pharetra condimentum.
</p>
<br />
<!-- ************* default button ************* -->
<a class="hs-button ghost-white" href="https://www.matrix-themes/widgets/" target="">Follow us</a>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/stevenschobert/instafeed.js@2.0.0rc1/src/instafeed.min.js"></script>
<script type="text/javascript">
//<![CDATA[
jQuery.noConflict();
(function($) {
// Init
$(document).ready(function() {
var feed = new Instafeed({
accessToken: 'your Instagram token goes here',
limit: 1,
target: 'instafeed4',
template: '<div class="instamatrix cc-box" style=""><a href="http://instagram.com/{{model.user.username}}" target="_blank">{{model.user.username}}<\/a><a href="{{link}}" title="{{caption}}" target="_blank"><img src="{{image}}" alt="{{caption}}" class="w-100"/><\/a><\/div>'
});
feed.run();
});
})(jQuery);
//]]>
</script>
1. Click the Matrix Themes admin menu and select the 'Shortcodes' section.
2. Choose any custom widget using the copy button.
3. Paste the widget code to your website inside the 'Widget/HTML' module.
4. Customize it by adding your own text and images.
Make your own website
with built-in tools to grow your business online.