Instagram Feed

Instagram Feed
Description

📸 Easily embed an instagram feed in your Statamic site 📸

This version of the addon is only for Statamic 3+

This is a premium addon which adds a fieldtype which gets images from instagram profiles. The addon is proprietary software, please buy a license on the Statamic marketplace to use it. Thank you!

For example:

{{ instagram_feed limit="3" }}
    <img src="{{ image }}">
{{ /instagram_feed }}

Requirements

  • Statamic 3
  • Instagram credentials for an account with Multi-factor auth turned OFF

Installation

Require the package with composer:

composer require austenc/statamic-instagram-feed

Configuration

You need to configure an Instagram username and password. Optionally, you can include a different profile for the feed to display.

Set the username/password .env file

INSTAGRAM_USERNAME='your-username'
INSTAGRAM_PASSWORD='your-password'
INSTAGRAM_PROFILE='other-profile' # defaults to your username

The username and password do not have to match the profile displayed, as long as the account can view the profile.

Usage

After configuring your Instagram username and password, use the {{ instagram_feed }} tag:

{{ instagram_feed }}
    <img src="{{ image }}">
{{ /instagram_feed }}

You may also use the limit parameter to restrict the number of recent posts

Post Fields

Each post in the feed contains a number of fields for you to use.

Field Description
id The post's Instagram ID
image The URL of the image
caption The caption of the post
thumb The URL for the post's thumbnail
date The date it was posted
comments The total number of comments on the post
likes The total number of likes on the post
height The image's height
width The image's width

Available Parameters

Currently only one option is supported, limit

Option Default Value Description
limit 12 The number of recent posts to pull

Support

Find a bug? Have a feature request? I'd be happy to help! Just send an email to [email protected] with the subject Statamic Instagram Help and I will get back to you as soon as I can.


Important Links
Details
Released October 28, 2019
Updated 3 days ago
Version 2.0.1
Downloads 19
Requires Statamic 2

Austen Cameron

Useful addons and themes straight out of the backroads of Montana.

More by Austen Cameron

Similar Addons

See All
Create, edit, and delete entries, pages, and globals on the front-end of your site without the control panel. $39

Workshop

by Statamic in Forms, Tag
Create, edit, and delete entries, pages, and globals on the front-end of your site without the control panel.
Manage and configure XML Sitemaps for your Statamic site with support for aliases, automatic cache management and pagination. $19

XML Sitemaps

by Benji Hughes in Enhancement, Forms, Tag
Manage and configure XML Sitemaps for your Statamic site with support for aliases, automatic cache management and pagination.