【问题标题】:I am building an iOS app with Instagram integration. what the redirect url should contain?我正在构建一个带有 Instagram 集成的 iOS 应用程序。重定向 url 应该包含什么?
【发布时间】:2013-12-03 14:01:49
【问题描述】:

我想应该是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];

谢谢

【问题讨论】:

    标签: ios login instagram


    【解决方案1】:

    您的 REDIRECT URI 应为:“ig”+“您的 clientId”+“://authorize”

    【讨论】:

    • 谢谢。顺便说一句,现在我可以看到登录页面,我登录成功,但是当我点击授权时没有任何反应..
    猜你喜欢
    • 1970-01-01
    • 2015-09-15
    • 1970-01-01
    • 1970-01-01
    • 2017-09-21
    • 1970-01-01
    • 2011-03-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多