#API Setup With Instagram Login

20 messages · Page 1 of 1 (latest)

hybrid sandal
#
    "error_type": "OAuthException",
    "code": 400,
    "error_message": "Invalid redirect_uri"
}```
simple temple
#

Judging by the message here #offtopic-chat message, your redirect URI is http://3877-193-80-183-229.ngrok-free.app/accounts/instagram/login/callback/. Is that what you've configured in the settings of your app in Instagram?

hybrid sandal
#

yes i had done the correct uri

simple temple
#

Clearly Instagram disagrees

#

Do they perhaps not allow plain HTTP redirect URIs?

hybrid sandal
#

ive done https://

#

and im using ngrok

#

its strange as i got google working and facebook ive just struggled with instagram and its a must for me

simple temple
#

The redirect URL in the link you posted in #offtopic-chat is http not https.

hybrid sandal
#

i have made sure it is https but im looking at the admin panel and i havent made a social application token, maybe instagram needs this?

#

ive made a social application and named it Insta Auth and ive added the client id and secret key

simple temple
#

It's not https in the Instagram link you posted in #offtopic-chat though. Have you changed anything since that?

hybrid sandal
simple temple
#

And what's the URL of the Instagram OAuth page now?

hybrid sandal
#
#

ok now ive got it working i was missing some scopes , but now when i log in i get this message

We suspect automated behavior on your account To prevent your account from being temporarily restricted or permanently disabled, ensure that no other users or tools have access to your account and that you're following our Terms of Use. Also consider changing your password to a stronger one to prevent unauthorized access to your account by third parties. Dismiss

when i click dismiss it doesnt redirect and log me into my website with instagram , instead it logs me into instagram home page

#

but if i go back to the site manually im logged in with instagram

#

dam im so close to making this work haha, its now logging me in with my account but its not redirecting correctly to the website

hybrid sandal