Skip to content

Instantly share code, notes, and snippets.

@lemon07r
Created November 26, 2025 16:37
Show Gist options
  • Select an option

  • Save lemon07r/2bc6c14a9c9179409d4ed7b7b8194c60 to your computer and use it in GitHub Desktop.

Select an option

Save lemon07r/2bc6c14a9c9179409d4ed7b7b8194c60 to your computer and use it in GitHub Desktop.
Instagram Access Token Guide

How to Get Your Instagram Access Token

You (the business owner) must generate this token using the Instagram account you want to display on the website. This token allows the website to "read" your posts.

Prerequisites

  1. Instagram Account: The account you want to display (e.g., @perfectionautospa).
  2. Facebook Developer Account: You can use your personal Facebook account to sign in at developers.facebook.com.

Step 1: Create a Facebook App

  1. Go to developers.facebook.com and click My Apps.
  2. Click Create App.
  3. Select Consumer (or "Something Else" -> "Consumer" if the options changed) as the app type. Click Next.
  4. Display Name: Enter something like "Perfection Website Feed".
  5. App Contact Email: Your email.
  6. Click Create App.

Step 2: Add Instagram Basic Display

  1. On the App Dashboard, look for "Instagram Basic Display" and click Set Up.
  2. Scroll to the bottom of the page and click Create New App.
  3. Display Name: "Perfection Website Feed" (same as before). Click Create App.
  4. Client OAuth Settings:
    • Valid OAuth Redirect URIs: Enter https://www.perfectionautospa.ca/ (and http://localhost:8080/ for testing).
    • Deauthorize Callback URL: Enter your website URL again.
    • Data Deletion Request URL: Enter your website URL again.
    • Click Save Changes.

Step 3: Add Instagram Tester

  1. In the left sidebar, go to Roles -> Roles.
  2. Scroll down to Instagram Testers.
  3. Click Add Instagram Testers.
  4. Enter the username of the Instagram account you want to display (e.g., perfectionautospa).
  5. Select the account and click Submit.
  6. Important: Log in to that Instagram account (on instagram.com). Go to Settings -> Apps and Websites -> Tester Invites and Accept the invite.

Step 4: Generate the Token

  1. Go back to the Facebook Developer Dashboard.
  2. In the left sidebar, go to Instagram Basic Display -> Basic Display.
  3. Scroll down to User Token Generator.
  4. You should see the Instagram account you just added. Click Generate Token.
  5. Follow the pop-up prompts to log in and authorize.
  6. Copy the Long-Lived Access Token.

Step 5: Send the Token

  • Send me (or the developer) this long string of characters.
  • We will add it to the secure configuration of the website.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment