objectiveflickr
objectiveflickr copied to clipboard
Issue on Reauthorize action: Invalid API key or signature error
Hi,
I'm fighting against this issue. Here is how to reproduce:
- Open Snap-n-run;
- Authorize on Flickr;
- User tap "authorize" on Flickr;
- All OK (authorized)
- Return to Snap-n-run;
- Tap on "Reauthorize"
- User tap "authorize" on Flickr;
- Error: Invalid API key or Signature;
Any idea or suggestions? thanks.
simone
Hi,
You can get 'Reauthorize' to work by setting auth_token
to nil
in the -authorizeAction
method before generating the login URL.
For example:
- (IBAction)authorizeAction {
authorizeButton.enabled = NO;
authorizeDescriptionLabel.text = @"Logging in...";
[[SnapAndRunAppDelegate sharedDelegate].flickrContext setAuthToken:nil];
NSURL *loginURL = [[SnapAndRunAppDelegate sharedDelegate].flickrContext loginURLFromFrobDictionary:nil requestedPermission:OFFlickrWritePermission];
[[UIApplication sharedApplication] openURL:loginURL];
}
Regards, Oliver
It worked. Thanks.