简体   繁体   English

重新启动应用程序后,仍然会弹出facebook SDK iOS登录视图

[英]facebook SDK iOS Login View still pops up after relaunching app

I've got it all working, I've even posted to fb already. 我已经做好了所有工作,甚至已经发布到了fb。 I was using the xcode Simulator the first time and it asked for user authentication, i entered my user info, then it gave me a second fb dialog window saying it was authorized and had to press OKAY button. 我第一次使用xcode模拟器,它要求用户身份验证,我输入了我的用户信息,然后它给了我第二个fb对话窗口,表明它已被授权并且必须按OKAY按钮。 This takes me to my app. 这将我带到我的应用程序。

What bugs me is that every time I run the app, it doesn't ask me for my credentials again, but it does pop-up a fb dialog window saying I've logged in fine, and i have to press the OKAY button in the bottom right. 让我感到烦恼的是,每当我运行该应用程序时,它都不会再次询问我的凭据,但会弹出一个fb对话框,提示我已登录,并且必须按“确定”按钮。右下角。

Is there anyway to avoid this, cause still be a pain for my users every time. 无论如何要避免这种情况,每次都会给我的用户带来痛苦。

u have been asking for permission for accessing the data everytime in facebook 您一直在要求每次访问Facebook中的数据的权限

to avoid this ask only one time for permission by setting the if loop with permission with bool ... 通过设置带有bool权限的if循环来避免一次只问一次权限...

i think u understand 我想你明白

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

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