MGTwitter Engine - Return Username

发布于 2022-09-05 15:42:27 字数 466 浏览 21 评论 0

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

衣神在巴黎 2022-09-12 15:42:29

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;

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文