gpt4 book ai didi

ios - 我正在构建一个带有 Instagram 集成的 iOS 应用程序。重定向网址应该包含什么?

转载 作者:行者123 更新时间:2023-11-29 10:51:17 24 4
gpt4 key购买 nike

我想它应该是一个 index.php 文件,但我找不到要实现的代码...我想做的是在 webview 中打开 Instagram 登录页面,这样我就可以接收到访问 token 。

#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];

谢谢

最佳答案

您的重定向 URI 应该是:“if”+“您的客户 ID”+“://authorize”

关于ios - 我正在构建一个带有 Instagram 集成的 iOS 应用程序。重定向网址应该包含什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20353203/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com