Build an Instagram Feed

Get started building your own beautiful Instagram Feed.
Learn how to get started with this guide below.

Getting Started

In this guide we will outline how you can get started building your own feed for Instagram using our Attribute method.

In general, you should understand the following simple concept - FeedSpring connects the structural <HTML> elements of your site with the live data from your favourite services. We do this through the use of attributes. This means that you can build any design with any layout you want, then add attributes to elements in order to render the live content.

During early-access video tutorials will not be available. Please check back soon

FeedSpring Setup

To get started, select add a new feed from your dashboard and select the Instagram Feed.
From here, you can enter the handle of your desired Instagram feed and get started connecting it with FeedSpring. This guide assumes you will use the attribute method, but you for Webflow & Framer you can use those methods and access pre-made components.

1

Add the FeedSpring Instagram Script

Required

Add the FeedSpring script to the <head> tag of your project.
If you are using Webflow, you can add this to your page settings, or globally through your project settings.

<script src="https://scripts.feedspring.co/instagram-attrs.js" async defer></script>

2

Add the Feed Wrapper Attribute

Required

We will now begin to build the foundation of your feed by adding two core elements - the Feed & Post Wrappers.

The Feed Wrapper Attribute helps us identify where your feed is located on the page. This attribute should be attached to something that will wrap all your feed content. In most cases this might be a section (div) or the container <div>.  You can also add a new div-block and use this to wrap the feed.

Simply add the attribute Name: feedspring and your unique attribute value Value: inst_xxxxxxx
You will find these values from your build page in app.

Want a visual example? Check out this read-only demo.

3

Add Post Wrapper Attribute

Required

Now we can add the Post Wrapper Attribute. Think of this as an individual item from one of your feeds - for example, an Instagram post, a Google review, a Youtube video. Inside this feed item is where we will have most of our content like images, captions, reviews etc.

Simply add the attribute Name: feedspring and your attribute value Value: post

Want a visual example? Check out this read-only demo.

FeedSpring Build

In this section we will now add additional attributes to our elements to start rendering content. You can check the table for a full list of available attributes and learn more about each of them down below.

Add Your Attributes

This table outlines all the attributes you can add to build your feed. For example, to display the caption from an Instagram post, you will add the attribute Name: feed-field and the attribute value as Value: caption

1

Instagram Image

To display the Image from your Instagram feed, add the attribute to a <img> element on your page.
Add the attribute Name: feed-field and add the attribute value Value: img

Bonus tip: While your feed is loading the placeholder image might show to the customer until it is rendered. You can improve this by adding any type of placeholder image, like your brands logo or a simple loader gif. Here's a simple animated loader that you can download and use as your placeholder.

Visual Example
2

Caption

To display the caption, add the attribute to a <text-block> on your page.
Add the attribute Name: feed-field and add the attribute value Value: caption

Visual Example

Lorem ipsum dolor sit amet, consectetur adipiscing elit

3

Timestamp

To show the timestamp, add the following attribute to a <text-block> on your page. By default, your timestamp will be displayed like this - October 09, 2023.
Add the attribute Name: feed-field and add the attribute value Value: timestamp

Bonus tip: You can add a custom timestamp, by using the formats here. You can also use our pre-set format, which renders in the following format - 12 days ago. To add this pre-set, simply add an additional attribute Name: feed-timestamp and add the attribute value Value: from-now Add this attribute as well as the original attribute listed above.

October 09, 2023

Visual Example
4

Link

To link to your post, add the following attribute to a <link> on your page.
Add the attribute Name: feed-field and add the attribute value Value: link

Visual Example
Link to Post
5

Username / Handle

To link to your post, add the following attribute to a <link> on your page.
Add the attribute Name: feed-field and add the attribute value Value: link

Visual Example
Link to Post
6

Avatar

To link to your post, add the following attribute to a <link> on your page.
Add the attribute Name: feed-field and add the attribute value Value: link

Visual Example
Link to Post
7

Bio

To link to your post, add the following attribute to a <link> on your page.
Add the attribute Name: feed-field and add the attribute value Value: link

Visual Example
Link to Post
8

Following Count

To link to your post, add the following attribute to a <link> on your page.
Add the attribute Name: feed-field and add the attribute value Value: link

Visual Example
Link to Post
9

Follower Count

To link to your post, add the following attribute to a <link> on your page.
Add the attribute Name: feed-field and add the attribute value Value: link

Visual Example
Link to Post
10

Verified

To link to your post, add the following attribute to a <link> on your page.
Add the attribute Name: feed-field and add the attribute value Value: link

Visual Example
Link to Post

Finish Your Build

Once you have completed the core build, you can continue on to add Additional Settings to your feed - including naming your feed, choosing the number of images you want to display and adding whitelist domains.

You can can test your feed by publishing your website and reviewing the live link. If something doesn't look right and you need to troubleshoot errors, right click on your page and click 'Inspect', then navigate to the console tab at the top. Here we will display any errors we found with your setup. If you need assistance, reach out to our friendly team for help.