Lets move further and see How to Fix Instagram widget issue on Soratemplate’s template. You can check a live preview of that working script by clicking the button below.
Adding the widget
Paste this Below code into it.
<div id=’instafeed’/>
<script type=’text/javascript’>//<![CDATA[
var feed = new Instafeed({
get: ‘user’,
userId: 3541708255,
limit:6,
sortBy:’random’,
accessToken: ‘3541708255.1677ed0.5e79fa74dcac4a52bea0ebba51eacb88‘,
template: ‘<li><a href=”” target=”_blank”><img src=”” /><div class=”insta-likes”><div style=”display: table; vertical-align: middle; height: 100%; width: 100%;”><span style=”display: table-cell; vertical-align: middle; height: 100%; width: 100%;”> <i class=”fa fa-heart”></i><br/> <i class=”fa fa-comment”></i></span></div></div></a></li>’,
resolution: ‘standard_resolution’
});
feed.run();
//]]>
</script></div>
In above code you you will see a
accessToken: ‘3541708255.1677ed0.5e79fa74dcac4a52bea0ebba51eacb88′,
This – 3541708255.1677ed0.5e79fa74dcac4a52bea0ebba51eacb88 is a access token ID.
Now you need to create you new one and replace with this.
- How to Create Instagram Access Token
1. you need access token for instagram widget to work
Go to this url-> https://ift.tt/1WIG82j
Login Via your instagram Account and Generate access token in a single click.
2. Once you get access token just replace with this access token with in a your code.
In above code you you will see a
- How to Create Instagram User Id
1. you need User Id for instagram widget to work
After Generating the access token Copy the first part of that token and paste it to the User Id option of that widget.
2. Once you you are done save the widget by clicking save button.
No comments:
Post a Comment