2. Create Client ID via Instagram

You’ll want to log into your Instagram account and go to this link http://instagram.com/developer/clients/manage/ to find the page where you will be able to register a new client. We will want to create a new “client” for this feed project. NOTE: Before being able to create a new client, you may need to confirm your phone number on Instagram.

3. Name Client ID via Instagram

Give your Client ID an Application Name, a Description, as well as Website and Redirect URI, fill out the CAPTCHA and hit the “Register” button to create that new Client ID. We’re not going to go over exactly what the authentication process via oAuth and the rediect_uri is here in this tutorial, but if you have questions Instagram has some information you can check out as well as running a couple Google searches.

4. Writing some HTML

The Instafeed.js script looks for a div with the id “instafeed”. We’re going to add that a div to our code and give it that id. See my screenshot to see the code I placed and to see where I placed it.

<div id="instafeed"></div>

5. Link to the JavaScript File

Jump up to the header portion of your HTML document and add this one line of code to link to wherever you have saved your Instafeed.js file.

6. Start Adding JavaScript

I’m going to start by creating another open and closing script tag here below my call to grab the JavaScript file.

<script type="text/javascript">// <![CDATA[
// ]]></script>

7. Create a New Variable

We’re going place this code within our script tag that we just created. We want to create a new variable which will contain the parameters of our Instagram feed which is displayed on our website (The tag which we’re targeting, the size or resolution of the images, ordering, number of images, and a bunch more. We have options here.) You can check out the code below.

var feed = new Instafeed ({
});

8. Choose Our Tag

Now we’ll specify that we want to grab images that are tagged with a specific tag and then choose which tag we want to target. Here I am targeting a tag I created in Summer of 2013 for a film project entitled “Philly Is Ugly” that I was working on at the time. We’ll be targeting ‘phillyisugly’ (#phillyisugly).

9. Add the Client ID to Make It Work

To make this feed work, simply paste in your Client ID to ensure proper authentication and we have to add a little line of code outside of our variable to tell this function to RUN! Check out the code below to see exactly what I wrote. Test your file in your browser and you will see a populated bunch of images from Instagram.

10. Making Changes to Feed

With a few simple adjustments you can quickly change the images that are fed into your site. Obviously you can simply change the tag that is loaded, but you also can grab the latest popular images on Instagram at that moment by adjusting the code as I have.

11. Limit Images and Linking

I’m going to go back to loading my “phillyIsUgly” tag and we’re going to take a look at loading more than just our initial 16 images. We want to load 32 images and also let’s look at removing the link to the Instagram image. NOTE: You can load up to 60 images at one time via Instagram.

12. CSS Finishing Touches

Using a little CSS, I am able to add some spacing between my images here as well as a simple opacity shift when the user hovers over any image. NOTE: You may want to have the link to the Instagram image if you’re creating some kind of interaction when the user rolls over one of the images.

13. That’s It!

There you have it, a simple way to pipe an Instagram feed into your website. Be sure to explore all the features on the Instafeed.js page and really check out the power they’ve packed into this quick and easy script. Thanks, Instafeed team!

Tags

Share on

Nathaniel Dodson: I am a young web designer and commercial photographer specializing in music, business, and athlete portraiture. I am a young and energetic individual who has been working in the design and creative field since I first started dabbling with Photoshop in year 2000.

Instagram has changed its API from this tutorial? When you register a new user form now on (manage users), it has to go in for a review? I tried this but it then asks for a Screencast login video used for the app? Hope you can help, there is absolutely no info on the internet about this as yet. Regards,

Greg

Hello There,

I have used almost same code and everything but its not showing the feed at all please help anyone