简体   繁体   中英

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

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"];

This still works fine for me. Have you tried the native Twitter API (if that's an option)?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM