Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on Reauthorize action: Invalid API key or signature error #18

Open
0m15 opened this issue Mar 28, 2011 · 2 comments
Open

Issue on Reauthorize action: Invalid API key or signature error #18

0m15 opened this issue Mar 28, 2011 · 2 comments

Comments

@0m15
Copy link

0m15 commented Mar 28, 2011

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

@olamm2k
Copy link

olamm2k commented Apr 14, 2011

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

@0m15
Copy link
Author

0m15 commented Apr 14, 2011

It worked.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants