I am using the oauth2 Instagram implicit flow to do login in Instagram, the base url that I am using is this:
https://api.instagram.com/oauth/authorize/?client_id=MY_CLIENT_ID&redirect_uri=http://example.com/oauth_redirect.html&response_type=token
This url show me the Instagram login page, I introduce user and password and if they are correct the API redirects me to the redirect_uri, but when I introduce a bad user or password it redirects me to this unavailable page in Instagram:
https://www.instagram.com/accounts/login/?force_classic_login=&next=/oauth/authorize/%3Fclient_id%MY_CLIENT_ID%26redirect_uri%3Dhttp%3A//example.com/oauth_redirect.html%26response_type%3Dtoken
This is a usual flow where the user doesn't introduce a correct password or email.
How can I resolve it? Is this something related with the configuration.
Thanks for your help.