Skip to content

Flickr doesn't recognise the "oauth_token" this application is trying to use #56

@edgar-zigis

Description

@edgar-zigis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions