2014-07-10 70 views
5

目前Instagram的API的OAuth,我被通過這個請求的Instagram的OAuth獲得訪問令牌:從本機應用程序

//Create OAuth 
NSString *oAuthURL = [NSString stringWithFormat:@"https://api.instagram.com/oauth/authorize/?client_id=%@&redirect_uri=%@&response_type=token", instagramID, instagramRedirectUri]; 

self.authWebView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 64.0f, self.view.frame.size.width, self.view.frame.size.height)]; 
NSURL *url = [NSURL URLWithString:oAuthURL]; 
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url]; 
[self.authWebView loadRequest:requestObj]; 
self.authWebView.delegate = self; 
[self.view addSubview:self.authWebView]; 

不過,我想能夠推出本地的Instagram應用程序(如果可用)類似Facebook應用的單點登錄。這可能嗎?如果Instagram應用只是要求獲得許可並且用戶按下ok而不是填寫他們的憑證,那將非常酷。

謝謝。

回答

3

不幸的是,Instagram目前沒有任何支持。這是需要在應用程序本身支持的東西。

相關問題