I am using the MGTWitter engine, and have had success authenticating and posting tweets.
Here's what I'm stuck on: I would like to store the twitter username and store it, so that I can display it on the view before a user posts a tweet.
I've scoured the web and can't find the right method. Should I somehow be storing the username in the storeCachedTwitterOAuthData delegate method?
Any help would be greatly appreciated.
-SD
If I am not wrong, the purpose of using OAuth, is not to keep the username or password in client side, in this case your iOS app.
It seems like you are also using web view based authentication, such as what
Twitter-OAuth-iPhone by Ben Gottlieb
(https://github.com/bengottlieb/Twitter-OAuth-iPhone) provides.If you do, you should implement
storeCachedTwitterOAuthData
delegate method to save username. Above mentionedTwitter-OAuth-iPhone
library provides nice example for web based authentication and example implementation of- (void) storeCachedTwitterOAuthData: (NSString *) data forUsername: (NSString *) username;