You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently trying to authorize instagram by using the InstagramKit library.
Currently I'm working with swift 3.0 the code looks as follows (for testing purposes)
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
engine = InstagramEngine.shared();
let iScope: InstagramKitLoginScope = [.comments, .followerList, .likes, .relationships];
let iAuthURL = engine.authorizationURL(for: iScope);
loginWebView.loadRequest(URLRequest(url: iAuthURL));
loginWebView.delegate = self;
}
func webView(_ webView: UIWebView, shouldStartLoadWith request: URLRequest, navigationType: UIWebViewNavigationType) -> Bool {
let url = request.url;
try! engine.receivedValidAccessToken(from: url!)
return true;
}
I'm currently trying to authorize instagram by using the InstagramKit library.
Currently I'm working with swift 3.0 the code looks as follows (for testing purposes)
I've set the following in my info.plist
When I put a debug on the request.url. This shows me the following
https://api.instagram.com/oauth/authorize/?client_id=myid&redirect_uri=http%3A//example.com&response_type=token&scope=comments%20relationships%20likes%20follower_list
Looking at it I'm wondering if it goes wrong at the http%3A?
I hope someone knows what is happening and how to fix it
The text was updated successfully, but these errors were encountered: