nst / STTwitter

A stable, mature and comprehensive Objective-C library for Twitter REST API 1.1
BSD 3-Clause "New" or "Revised" License
999 stars 165 forks source link

postTokenRequest never callsback success or failure #272

Closed victorstewart closed 7 years ago

victorstewart commented 7 years ago

I've set up my twitter application / api account. Got my consumer key and secret... but when I try to authenticate a user like this.... no callbacks are ever called, neither success nor failure.

Any idea what could be causing that?

Here's the code I'm using

 [[STTwitterAPI twitterAPIWithOAuthConsumerKey:@"xxxxxxxxxxxx" consumerSecret:@"xxxxx"] postTokenRequest:^(NSURL *url, NSString *oauthToken) {

                 LOG(@"twitter auth returned");
                 LOG(@"url = %@", url);
                 LOG(@"oauthToken = %@", oauthToken);

                 [[Web sharedWeb] loadURL:url.absoluteString caller:self];

                 } oauthCallback:@"xxxx://twitter"
                 errorBlock:^(NSError *error) {

                 LOG(@"error occured while trying to auth twitter = %@", error);
                 }];
victorstewart commented 7 years ago

all that appears in NSLog is...

2017-02-10 00:28:56.006282 xxx[4305:1407180] -- <__NSObserver: 0x1702433c0>