Unable to login to Instagram using client (implicit) authentication

I am trying to create a client application that allows users to log in with their Instagram accounts. The problem is that I'm not sure if this is possible.

I encoded a JavaScript sample after reading "Client (Implicit) Authentication" in related documents .

I get the following error:

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

From the error message, I assume this is not my code, but something on the Instagram side. Is there any way for me to do client-side login? Also, if I can’t, what are my options?

Thanks.

+7
javascript instagram
source share
4 answers

I had a similar problem and that is how I fixed it.

You must uncheck the box " Disable Implicit OAuth: " by clicking on the link:

β†’ Customer Management

β†’ Click "Edit" in the / webapp application.

β†’ Uncheck - disable implicit OAuth:

β†’ Update the settings and try again by clicking on 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 in response_type , specify the token value to get the access token, and if you want to get the request code , just replace the token with the code in the URL.

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

+16
source share

Just disable the "Disable Implicit OAuth:" option in the application settings.

enter image description here

+2
source share

So, it seems impossible to make a JS login at the moment with Instagram.

But they still allow implicit redirects, so the solution is for the server to redirect your application on the client side. You need only two endpoints. I wrote a small Node.JS application for this, which you can find here here .

+1
source share

I tried for the same thing, I think that there is still no api to log in with username and password of Instagram credentials. You can simply authenticate your account with

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

0
source share

All Articles