简体   繁体   English

在iOS应用中通过Facebook一次登录

[英]One time login through Facebook in iOS app

I have a app which has a login option which is only through the Facebook account. 我有一个具有登录选项的应用程序,只能通过Facebook帐户登录。 But when I run the app in simulator it always ask for login again and again when I am going to run my app. 但是,当我在模拟器中运行该应用程序时,它总是在我要运行我的应用程序时一再要求登录。 I want to show the main view if user is already logged in through the Facebook and when user delete the app and install again then user has to log in again to the app. 我想显示主视图,如果用户已经通过Facebook登录,并且当用户删除该应用并重新安装时,则用户必须再次登录该应用。

You should be saving a single sign on token? 您应该在令牌上保存单个登录吗? The simulator will fallback to 0Auth and may not be realistic, but it should remember it none the less. 模拟器将回退到0Auth,可能不切实际,但仍应记住这一点。

Which version of the FaceBook SDK are you using? 您正在使用哪个版本的FaceBook SDK?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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