目前,我通过以下方式请求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 app的单点登录。这可能吗?如果Instagram应用程序只是请求权限并且用户按下ok而不是填写他们的凭据,那就太酷了。
感谢。
答案 0 :(得分:3)
不幸的是,Instagram目前对此没有任何支持。这是应用程序本身需要支持的东西。