How to generate Instagram 'Client ID', 'Client Secret' and 'Access Token'

To get your Instagram Client ID, Client Secret and Access Token follow few steps below...

Step 1 - Client ID and Client Secret

  1. Login to your Instagram account and go to http://instagram.com/developer
  2. Click "Manage Clients" (top right corner)
    How-to-generate-Instagram-Client-ID-and-Client-Secret-01
  3. Click on 'Register a New Client'
    How-to-generate-Instagram-Client-ID-and-Client-Secret-02
  4. Enter your details in the field as show below
    How-to-generate-Instagram-Client-ID-and-Client-Secret-03
  5. Go to Security tab and don't forget to uncheck 'Disable implicit OAuth'
    How-to-generate-Instagram-Client-ID-and-Client-Secret-04
  6. Click 'Register'
  7. Now you will be able to see your 'Client ID' and 'Client Secret'
    How-to-generate-Instagram-Client-ID-and-Client-Secret-04

Step 2 - Access Token

Copy the URL below and replace the UPPERCASE (red color) with the information you noted earlier on Client ID and Redirect URL (as shown above).

https://instagram.com/oauth/authorize/?client_id=[CLIENT_ID_HERE]&redirect_uri=[REDIRECT URI]&response_type=token

After changing CLIENT ID and REDIRECT URL, paste the full URL in your favorite browser and hit enter.

How-to-generate-Instagram-Client-ID-and-Client-Secret-05

You will be taken to Instagram server for authorization. Click 'Authorize'

How-to-generate-Instagram-Client-ID-and-Client-Secret-06

Now you will been redirect to the URL you set as your REDIRECT URL, if you look closely to the URL you will see your Access Token after '=' (equal to sign), something like this...

http://sitename.com/#access_token=85461025.f569f6c.e3cd87a986524862043476fcd1e9463e  (this is fictitious access token)

How-to-generate-Instagram-Client-ID-and-Client-Secret-07

Your access token is like a password for your Instagram account and so shouldn’t be revealed to anyone.

Copyright © 2024 Siam Naulak.
magnifiercrossmenu