Skip to content

Instantly share code, notes, and snippets.

@4lun
Created January 17, 2017 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4lun/1fcba4f1f18fdb7ad1976c95a8ff3823 to your computer and use it in GitHub Desktop.
Save 4lun/1fcba4f1f18fdb7ad1976c95a8ff3823 to your computer and use it in GitHub Desktop.
Generate a personal access token for Instagram
  1. Register a client at https://www.instagram.com/developer/ (redirect_uri can be something simple such as http://localhost)
  2. Go to the 'Security' tab for your client (under manage) and untick 'Disable implicit OAuth'
  3. Take the following URL, subsitute the [client_id] with your own and the [redirect_uri] with one you specified during the registration process: https://api.instagram.com/oauth/authorize/?client_id=[client_id]&redirect_uri=[redirect_uri]&response_type=token
  4. Navigate to the URL in the browser (while logged in as the same user), after accepting any prompts you should be redirected to your specified redirect_uri with the access token appended
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment