M
M
Maxim Trofimov2016-06-28 21:31:29
Objective-C
Maxim Trofimov, 2016-06-28 21:31:29

How to get access token in instagram api without browser interaction?

To get an access token in instagram I use the following code

NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://api.instagram.com/oauth/authorize/?client_id=%@&redirect_uri=%@&response_type=token", CLIENT_ID, REDIRECT_URI]]];

CLIENT_ID and REDIRECT_URI are the data given to me by instagram. As a result, I do not receive a token. In order to get it, you need to enter the same thing into the browser, then you will get the access_token=************************* token, but how to get it without interacting with the browser?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question