Instagram Oauth - allow user's to choose which account to login with?

Viewed 188

I've integrated my React app with Instagram Basic Display. My user's are successfully able to link their Instagram account to my app.

However for user's that have multiple Instagram accounts, I've noticed that the Authorization Window displayed when going through Instagram's Oauth flow does not contain the ability to switch accounts.

Is their some way to enable user's going through the Instagram Oauth flow to switch between accounts and select which account they would like to link with my app?

1 Answers

If you add force_authentication=1 to the login oAauth URL, it will force the user to enter their credentials.

https://api.instagram.com/oauth/authorize?force_authentication=1&client_id=${IG_APP_ID}&redirect_uri=${IG_REG_REDIRECT_URL}&scope=${IG_REG_SCOPE}&state=1&response_type=code

I take no credit for this answer, I found it in another questions here: https://stackoverflow.com/a/71787472

Related