We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
- (IBAction)loginOnTheWebAction:(id)sender { self.twitter = [STTwitterAPI twitterAPIAppOnlyWithConsumerKey:_consumerKeyTextField.text consumerSecret:_consumerSecretTextField.text]; _loginStatusLabel.text = @"Trying to login with Safari..."; _loginStatusLabel.text = @""; [self.twitter postTokenRequest:^(NSURL *url, NSString *oauthToken) { NSLog(@"-- url: %@", url); NSLog(@"-- oauthToken: %@", oauthToken); if([self.openSafariSwitch isOn]) { [[UIApplication sharedApplication] openURL:url]; } else { WebViewVC *webViewVC = [self.storyboard instantiateViewControllerWithIdentifier:@"WebViewVC"]; [self presentViewController:webViewVC animated:YES completion:^{ NSURLRequest *request = [NSURLRequest requestWithURL:url]; [webViewVC.webView loadRequest:request]; }]; } } authenticateInsteadOfAuthorize:NO forceLogin:@(YES) screenName:nil //scheme:// oauthCallback:@"STTwitterDemoIOS://" errorBlock:^(NSError *error) { NSLog(@"-- error: %@", error); _loginStatusLabel.text = [error localizedDescription]; }]; }
The text was updated successfully, but these errors were encountered:
Any solution for this issue?
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: