MGTwitter Engine - Return Username
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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 mentioned
Twitter-OAuth-iPhone
library provides nice example for web based authentication and example implementation of- (void) storeCachedTwitterOAuthData: (NSString *) data forUsername: (NSString *) username;