Instagram Feed (with Instagram Basic Display API)

Most Viewed Article

Overview

This document provides instructions on how to setup the Instagram extension and allow users to show their Instagram photos on their profile page.

Note: Starting October 15, 2019, new client registration and permission review on Instagram API platform are discontinued in favor of the Instagram Basic Display API. If you registered your application before October 15, you should use Instagram API. See instruction Instagram App Setup.

Сontents

Instagram App creation and setup  #

You have to create a Facebook App to use Instagram extension.
Application can work in one of these modes:

Facebook App is in the Development Mode by default. You have to request permissions and go through App Review to enable Live Mode.

Step 1: Create a Facebook App

Go to developers.facebook.com, click My Apps, and create a new app. Once you have created the app and are in the App Dashboard, navigate to [Settings > Basic], scroll the bottom of page, and click Add Platform.

Choose Website, add your website’s URL, and save your changes.

Step 2: Configure Instagram Basic Display

Click Products, locate the Instagram product, and click Set Up to add it to your app.

Click Basic Display, scroll to the bottom of the page, then click Create New App.

In the form that appears, complete each section using the guidelines below.

  • Display Name – Enter the name of the Facebook app you just created.
  • Valid OAuth Redirect URIs – Enter your website’s URL. There are two dedicated URI that can capture redirect parameters as below:
  • Deauthorize Callback URL – Your website’s logout page URL.
  • Data Deletion Request Callback URL – Enter your website’s URL once again.

Step 3: Add an Instagram Test User

Navigate to [Roles > Roles] and scroll down to the Instagram Testers section. Click Add Instagram Testers and enter your Instagram account’s username and send the invitation.

Open a new web browser and go to www.instagram.com and sign into your Instagram account that you just invited. Navigate to [Profile > Edit Profile > Authorized Applications > Tester Invites] and accept the invitation.

Your Instagram account is eligible to be accessed by your Facebook app while it is in Development Mode.

Note: All permissions need to be approved for your app through the App Review process before they can be used in Live Mode

Configure extension`s settings  #

Once you get your User ID and Access Token Key from https://freevision.me/instagram/ by using Client/App ID and Client Secret parameters enter them into Instagram Feed settings like below.

If all parameters set correctly you should see outputs like below when you view your page (output depends on the theme, not always same for each theme as shown below)

Note: Instagram User access tokens are limited by time. Short-lived access tokens are valid for 1 hour. Long-lived access tokens are valid for 60 days. When your token expires, you need to get new again, but this time you just need to enter App/Client ID and App/Client Secret that you previously generated.

App Review & Live Mode  #

Before you can switch your app to Live Mode, you may have to go through App Review. The process allows Facebook to verify who you are and how you will be using the data that your app will be accessing.

Permissions

Data access authorization is controlled by your app users through the use of the permissions listed below. Users must grant your app these permissions through the Authorization Window before your app can access their data.

Note: All permissions need to be approved for your app through the App Review process before they can be used in Live Mode

Individual Verification

You’ll need to provide an email address where you can receive, review, and submit a contract, and upload an image copy of an approved ID or document. By verifying as an individual, certain permissions or Features from your request may not be available or will be limited per each app installer. You’ll also need to sign 1 contract. Learn more

Errors  #

Error “Insufficient developer role” may appear if Facebook App is in the Development Mode and you are not a Tester. You have to make yourself a Tester or enable Live Mode.

Error “The access_token provided is invalid.” may appear if the access token is older than 60 days. Try to reconnect.

Found on https://docs.ultimatemember.com/article/1530-instagram-app-setup-basic and adapted for our Instagram Feed documentation.