This script creates an instagram feed of a user. The script reads all images from your instagram account, downloads the largest size (612x612) and shows the last five.

How it works

This script loads instafeed.js and requires three variables: userId, clientId and accessToken. To obtain a clientId you need to register your website as an Instagram application. This will give you a clientId. Next you need to follow a three step process to obtain the accessToken.


Step 1. Download the file instagram.html
Step 2. Save the file in the ‘_includes’ directory of your project
Step 3. Add the following line to your layout on the place where you want the share buttons to appear:

{% include instagram.html clientId="ed7b5036b29a48d482376be6c3413d24" userId="260010543" accessToken="260010543.ed7b503.9571dca5a7cb4914b866004d67c96ef0" %}