[GH-ISSUE #268] No http in Instagram uri field, what to use for value? #159

Closed
opened 2026-03-03 16:46:13 +03:00 by kerem · 5 comments
Owner

Originally created by @ejpusa-zz on GitHub (Aug 17, 2016).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/268

Ok, I'm sure this has been faced before. What uri should we be using for Instagram for the redirect back to my app? Thought at one point IG accepted: oauth-swift://oauth-callback/instagram

But that no longer seems to be the case. Thanks for help.

screen shot 2016-08-17 at 4 14 08 am
Originally created by @ejpusa-zz on GitHub (Aug 17, 2016). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/268 Ok, I'm sure this has been faced before. What uri should we be using for Instagram for the redirect back to my app? Thought at one point IG accepted: oauth-swift://oauth-callback/instagram But that no longer seems to be the case. Thanks for help. <img width="859" alt="screen shot 2016-08-17 at 4 14 08 am" src="https://cloud.githubusercontent.com/assets/1279819/17729361/e190db2a-6431-11e6-9d23-832f85dee0fc.png">
kerem 2026-03-03 16:46:13 +03:00
Author
Owner

@phimage commented on GitHub (Aug 17, 2016):

https://github.com/OAuthSwift/OAuthSwift/wiki/Instagram

<!-- gh-comment-id:240345767 --> @phimage commented on GitHub (Aug 17, 2016): https://github.com/OAuthSwift/OAuthSwift/wiki/Instagram
Author
Owner

@phimage commented on GitHub (Aug 17, 2016):

#258

<!-- gh-comment-id:240346509 --> @phimage commented on GitHub (Aug 17, 2016): #258
Author
Owner

@ejpusa-zz commented on GitHub (Aug 17, 2016):

Thanks for quick response, IG does require a value there. I can't leave it blank it looks like.

Yes, do want to use the internal web view. Just don't see how that is setup.

Handle a specific URL into delegate
Use an internal webview (UIWebView, WKWebView, ..)
by setting a controller as oauthswift.authorize_url_handler to load web pages into the webview
by implementing a web view delegate (UIWebViewDelegate, WKNavigationDelegate, ..) to handle the callback url and call OAuthSwift.handleOpenURL(url)

<!-- gh-comment-id:240346575 --> @ejpusa-zz commented on GitHub (Aug 17, 2016): Thanks for quick response, IG does require a value there. I can't leave it blank it looks like. Yes, do want to use the internal web view. Just don't see how that is setup. > Handle a specific URL into delegate > Use an internal webview (UIWebView, WKWebView, ..) > by setting a controller as oauthswift.authorize_url_handler to load web pages into the webview > by implementing a web view delegate (UIWebViewDelegate, WKNavigationDelegate, ..) to handle the callback url and call OAuthSwift.handleOpenURL(url)
Author
Owner

@ejpusa-zz commented on GitHub (Aug 18, 2016):

From this text, still not sure what URl is needed by instagram, since that URI now has to start with https://

  1. What is the one to use?
  2. In the app, are there edits to the plist values?
  3. How do they match with what is entered?

thanks

<!-- gh-comment-id:240833537 --> @ejpusa-zz commented on GitHub (Aug 18, 2016): From this text, still not sure what URl is needed by instagram, since that URI now has to start with https:// 1. What is the one to use? 2. In the app, are there edits to the plist values? 3. How do they match with what is entered? thanks
Author
Owner

@phimage commented on GitHub (Aug 18, 2016):

1: use what you want
2 no plist things to do
3 use same callback url that you set in instagram

read wiki more closely, see demo code in webview delegate (call of oauthswift.handle...) e35c7a2
and please close issue when you are done

<!-- gh-comment-id:240866389 --> @phimage commented on GitHub (Aug 18, 2016): 1: use what you want 2 no plist things to do 3 use same callback url that you set in instagram read wiki more closely, see demo code in webview delegate (call of oauthswift.handle...) e35c7a2 and please close issue when you are done
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#159
No description provided.