Search code examples
ioscocoa-touchtwittertwitter-oauthmgtwitterengine

Ben Gottlieb's Twitter+OAuth iOS SDK - username parameter returning nil


It seems that over the weekend, the following Delegate method

- (void)OAuthTwitterController:(SA_OAuthTwitterController *)controller authenticatedWithUsername:(NSString *)username

began returning nil for the username parameter.

I wanted to see if anyone else using Ben Gottlieb's SDK can confirm this issue.

Thanks


Solution

  • I had the same issue today. The app worked fine for the past 2 months. One thing I changed was the bundle id. Maybe this has something to do with this error, because everything else is the same. Did you happen to change this too?

    I changed to https the urls for twitter on SA_OAuthTwitterEngine.m and it seems to be working fine now.

    Here is the code I changed:

    self.requestTokenURL = [NSURL URLWithString: @"https://twitter.com/oauth/request_token"];
    self.accessTokenURL = [NSURL URLWithString: @"https://twitter.com/oauth/access_token"];
    self.authorizeURL = [NSURL URLWithString: @"https://twitter.com/oauth/authorize"];