来自本机应用的Instagram API OAuth

kev*_*inl 5 facebook oauth objective-c ios instagram

目前,我通过以下方式请求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];
Run Code Online (Sandbox Code Playgroud)

但是,我希望能够将本机Instagram应用程序(如果可用)启动到类似facebook app的单点登录.这可能吗?如果Instagram应用程序只是请求权限并且用户按下ok而不是填写他们的凭据,那将是非常酷的.

谢谢.

小智 3

不幸的是,Instagram 目前对此不提供任何支持。这是应用程序本身需要支持的东西。