使用 OAuth+MGTwitterEngine 库从 iPhone 中的 Twitter 注销 [英] logout from Twitter in iPhone using OAuth+MGTwitterEngine Library

查看:24
本文介绍了使用 OAuth+MGTwitterEngine 库从 iPhone 中的 Twitter 注销的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 OAuth 和 MGTwitterEngine 库制作了 twitter 应用程序.登录阶段工作正常,但我在注销时遇到问题.我已经提到了 OAuth 的所有注销帖子,但它不起作用.那么任何人都可以建议从 Twitter 注销的完美方法......?或者我必须在库文件中进行哪些更改才能注销..!!

I had made the twitter application using the OAuth and MGTwitterEngine Library. The login phase is working fine but I am facing problem in logout. I had referred all the post of logout for OAuth but it doesn't works. So can anyone suggest the perfect method for logout from the Twitter ...? OR What changes I have to make in the Library file for the logout..!!

推荐答案

Twitter OAuth/xAuth 没有注销...你需要实现客户端解决方案:

There is no sign out from Twitter OAuth/xAuth... you need to implement client side solution:

  1. 在登录时将访问令牌持久存储在钥匙串或核心数据中(除非用户从他/她的帐户中撤销您的应用程序,否则它永远不会过期)并在随后的 Twitter 调用中使用它并保持用户登录"
  2. 退出时删除存储的任何相关数据(在本例中为访问令牌)

希望能帮到你

这篇关于使用 OAuth+MGTwitterEngine 库从 iPhone 中的 Twitter 注销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆