Views:

Overview

When the Instagram access token expires or its value gets misplaced and a web page embed stops working, the access token needs to be regenerated. The article below will walk you through the steps required to regenerate the Instagram access token.

Generating Instagram Access Token

Retrieve Client ID

  1. Sign in to Instagram Developer Documentation portal
  2. Click on Manage Clients at the top of the page
  3. You will see a list of registered applications you've created
  4. Find the right app and click on Manage
  5.  Copy Client ID at the top of the screen

Retrieve registered redirection URI

  1. While managing client properties, switch to the Security tab
  2. Copy one of the valid redirect URIs to a temp location
  3. Leave all other settings untouched

Generate access token URL

  1. Enter the following URL into your browser's address bar: https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=token
  2. Replace CLIENT-ID with client id value from Retrieve Client ID step 5 above
  3. Replace REDIRECT-URI with value from Retrieve registered redirection URI step 2
  4. Hit enter to go to the generated URL
  5. You will be redirected to the REDIRECT-URI - depending on the value this may or may not be a real site so you may or may not get an error. It doesn't matter.
  6. Look at the address and notice the #access_token parameter and its value. Copy this value and use it in your web embed
  7. NOTE that the first part of the access token (before the period) is your app id. You may need it for your embed as well!
Problems? Questions? Get in touch!