Abdul Jabbar
Abdul Jabbar

Reputation: 358

Get Instagram Access token

I have my Instagram Client ID, Client Secret, but I do not understand the use of the Redirect URI and why I need it.

Can I get access token without redirect URI.

Upvotes: 0

Views: 670

Answers (1)

Jason Portnoy
Jason Portnoy

Reputation: 797

The answer is No.

In order to authenticate the Instagram user they need to be directed to Instagram. On successful login Instagram will return the user back to your site or another URL of your specification. (this is the redirect Uri)

If you're doing the "Client-Side (Implicit) Authentication" You'll get the Access token like this. http://your-redirect-uri#access_token=ACCESS-TOKEN

You can now get the access token from the url query string.

Upvotes: 1

Related Questions