我想它应该是一个index.php文件,但我找不到要实现的代码......我想要做的是在webview中打开Instagram登录页面,所以我可以收到访问令牌。
#define scope @"basic+likes+comments+relationships"
#define callbackURL @"http://test.com"
#define clientID @"c32e8dcf2482xxxxx"
#define clientSecret @"a9dxxxxxxxxx"
NSURL *url = [[NSURL alloc]initWithString:[NSString stringWithFormat:@"https://api.instagram.com/oauth/authorize/?client_id=%@&display=touch&scope=%@&redirect_uri=%@&response_type=code",clientID,scope,callbackURL]];
NSURLRequest *req = [[NSURLRequest alloc]initWithURL:url];
[webView loadRequest:req];
由于
答案 0 :(得分:2)
您的REDIRECT URI应为:“ig”+“your clientId”+“:// authorize”