Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't login to Instagram using Client-Side (Implicit) Authentication

I'm trying to build a client-side application that allows people to login with their Instagram accounts. Problem is, I'm not sure if that's still possible.

I've coded a sample JavaScript after reading "Client-Side (Implicit) Authentication" section of their related docs.

I'm getting the following error:

{
"code": 400,
"error_type": "OAuthException",
"error_message": "JS login temporarily disabled"
}

From the error message I'm guessing it's not about my code but it's something on Instagram's side. Is there a way for me to do client-side login? Also, if I can't, what are my options?

Thanks.

like image 307
Batuhan Icoz Avatar asked May 15 '14 18:05

Batuhan Icoz


1 Answers

I had similar issue and this is how I fixed it.

You have to uncheck the "Disable implicit OAuth:" by going to :

-> Manage Clients

-> Click edit on the app/webapp.

-> Uncheck - Disable implicit OAuth:

-> Update the settings and try to run it again by going to the link :

https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=token

In the link, replace the values that were provided to you and in the response_type, give value as token to get the access token and if you want to get the request code, just replace token with the code in the URL.

Hope this helps for you and for future viewers.. Good luck.. :)

like image 128
mike20132013 Avatar answered Oct 06 '22 04:10

mike20132013