Instagram統合でiOSアプリを構築しています。リダイレクトURLには何を含めるべきですか?

StackOverflow https://stackoverflow.com/questions/20353203

  •  25-08-2022
  •  | 
  •  

質問

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

ありがとう

役に立ちましたか?

解決

リダイレクトURIは次のとおりです。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top