I am trying to authenticate an OSX application through OAuth, specifically using the Instagram API . I installed the application with Instagram - I have a client identifier and a secret, but I'm not sure how to handle redirect_url and how to get access_token, after authentication.
So far, I just have a simple WebView that loads the login page ...
[[_webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://instagram.com/oauth/authorize/?client_id=THECLIENTID&redirect_uri=REDIRECT_URI&response_type=code"]]];
source share