objectiveflickr icon indicating copy to clipboard operation
objectiveflickr copied to clipboard

Issue on Reauthorize action: Invalid API key or signature error

Open 0m15 opened this issue 13 years ago • 2 comments

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

0m15 avatar Mar 28 '11 13:03 0m15

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

olamm2k avatar Apr 14 '11 14:04 olamm2k

It worked. Thanks.

0m15 avatar Apr 14 '11 14:04 0m15