[英]Permissions dialog in Facebook iOS native app
I'm using Facebook iOS SDK 3.5 to log-in into my app, the following method is invoked: 我正在使用Facebook iOS SDK 3.5登录到我的应用程序,调用了以下方法:
FBSession openActiveSessionWithReadPermissions FBSession openActiveSessionWithReadPermissions
If native iOS login is not enabled and facebook iOS app is installed, the login process will get redirected to the facebook app. 如果未启用本机iOS登录并安装了facebook iOS应用,则登录过程将重定向到facebook应用。 The problem is that every single time 'FBSession openActiveSessionWithReadPermissions'is invoked, the facebook app presents the permission dialog to the user, even when the user already authorized the FB app.
问题是,每当调用“ FBSession openActiveSessionWithReadPermissions”时,facebook应用程序都会向用户显示权限对话框,即使用户已授权FB应用程序也是如此。
The permission list is empty (nil). 权限列表为空(无)。 This problem does not happen if native ios or safari are used to log -in.
如果使用本机ios或safari登录,则不会发生此问题。
Any ideas? 有任何想法吗? Thanks
谢谢
You can check if the user has successfully logged in by checking for an access token here 您可以通过在此处检查访问令牌来检查用户是否已成功登录
Also, you can make sure you aren't popping up a GUI from each call by setting allowLoginUI to false. 另外,通过将allowLoginUI设置为false,可以确保您不会从每次调用中弹出GUI。
+ (BOOL)openActiveSessionWithAllowLoginUI:(BOOL)allowLoginUI;
I've not done any iOS FB stuff myself, but that's what I got from reading the docs. 我自己还没有完成任何iOS FB的工作,但这就是我从阅读文档中获得的。
Also, there seems to be a somewhat related question posted here . 此外,还有似乎是贴一个有点相关的问题在这里 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.