A
A
azaznioo2015-03-28 22:12:34
JavaScript
azaznioo, 2015-03-28 22:12:34

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

2 answer(s)
N
Nubzilo, 2015-03-29
@azaznioo

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

S
Sergey, 2015-03-28
@butteff

Why not use their API for this?
I don’t program in sisharp, but there are a lot of solutions on github .
I myself work with this unofficial api , based on standard methods, but this is already php.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question