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
Hello,
I am trying to implement Flickr authorization, it seems that it succeeds to enter into project page, but after clicking at button which gives app permission - webview shows this message:
Flickr doesn't recognise the "oauth_token" this application is trying to use
I am using this code to authenticate:
let url = URL(string: "flickrapp://auth")
FlickrKit.shared().beginAuth(withCallbackURL: url!, permission: FKPermission.delete) { (url, error) in
Tools.runAsync {
if let error = error {
self.showError(error.localizedDescription)
} else {
print(url?.absoluteString)
let urlRequest = NSMutableURLRequest.init(url: url!, cachePolicy: NSURLRequest.CachePolicy.useProtocolCachePolicy, timeoutInterval: 30)
self.flickrWebView.isHidden = false
self.flickrWebView.loadRequest(urlRequest as URLRequest)
}
}
}
I print url in webview and it prints generated oauth_token, so token is generated. However it fails at flickr.
The text was updated successfully, but these errors were encountered:
Sorry for the very late reply... however for the next person who reads this....
Sounds like you've missed the step with the callback URL. After you log in via Flickr successfully in the web view, Flickr redirects to your custom URL scheme that you configured when you setup your Flickr API Key, in the Callback URL section.
Example:
myscheme://auth?
This needs to be in your Info.plist file under URL Types > URL Schemes
Hello,
I am trying to implement Flickr authorization, it seems that it succeeds to enter into project page, but after clicking at button which gives app permission - webview shows this message:
Flickr doesn't recognise the "oauth_token" this application is trying to use
I am using this code to authenticate:
let url = URL(string: "flickrapp://auth")
FlickrKit.shared().beginAuth(withCallbackURL: url!, permission: FKPermission.delete) { (url, error) in
Tools.runAsync {
if let error = error {
self.showError(error.localizedDescription)
} else {
print(url?.absoluteString)
let urlRequest = NSMutableURLRequest.init(url: url!, cachePolicy: NSURLRequest.CachePolicy.useProtocolCachePolicy, timeoutInterval: 30)
self.flickrWebView.isHidden = false
self.flickrWebView.loadRequest(urlRequest as URLRequest)
}
}
}
I print url in webview and it prints generated oauth_token, so token is generated. However it fails at flickr.
The text was updated successfully, but these errors were encountered: