Answer the question
In order to leave comments, you need to log in
How to make authorization through Instagram using http requests?
Hello, I want to make authorization in instagram through http requests. c# language. If you click on the link below, an authorization form will appear.
https://instagram.com/oauth/authorize/?client_id=1...
When authorizing, a POST request is sent with parameters:
csrfmiddlewaretoken = "the key is on the page"
username = ""
password=""
And all this is sent to:
https://instagram.com/accounts/login/?force_classi...
When I go, I get an http 403 error. I save cookies, changed the User-Agent, and there's no point.
Answer the question
In order to leave comments, you need to log in
Could you show me your code.
And so, if you directly vang - I think the problem is that you do not process the redirect.
There is a sequence like this, first you have to send a get request, then intercept the redirect to the form with permission to give access rights and from there send further. In the response, intercept the code that will go after your callbackurl
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question