0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

OAuthSwiftでTwitterを認証するときのCallback URLについて

Posted at
  • TARGETS -> Info -> URL Types -> URL Schemes は自分のアプリ名など任意の文字列(ここではmyappとする)
  • OAuth1Swift.authorize()で指定するCallbackURL"myapp://oauth-callback/twitter"にする
  • OAuthSwift.handle(url:)を呼ぶ前の条件分岐はurl.host == "oauth-callback"にする
  • Twitter Appsのアプリ設定項目のCallback URLはmyapp://を入力する
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?