简体   繁体   English

Facebook iOS本机应用程序中的“权限”对话框

[英]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.

相关问题 通过Facebook为本地iOS应用发送带有对话框的个人邀请 - send individual invite with dialog for Native iOS app via Facebook Facebook请求对话框:本机iOS应用程序中的无摩擦请求可能吗? - Facebook Requests Dialog: Frictionless Requests in native iOS app possible? 我应该在哪里指定通过新的增强型身份验证对话框在iOS应用中请求的Facebook权限? - Where should I specify what Facebook permissions to request in iOS app with the new enhanced auth dialog? Facebook在iOS应用程序中发送对话框 - Facebook send dialog in iOS app 是否可以生成一个“在 Facebook 上分享”链接,在 Android/iOS/手机上打开原生 Facebook 应用程序而不是网络共享对话框? - Is it possible to generate a 'share on Facebook' link that opens the native Facebook App on Android/iOS/mobile instead of the web share dialog? iOS6本机Facebook分享对话框网址 - iOS6 native facebook share dialog url 如何使用对话框将本地iOS应用程序的默认字符串设置为来自iPhone应用程序的Facebook页面 - How to set default String from native ios app to facebook page from iphone app using dialog iOS Facebook本机共享对话框:初始文本 - iOS Facebook Native Share Dialog : initial text 适用于iOS 6.0的Facebook SDK本机“共享”对话框 - Facebook SDK for iOS 6.0 native Share dialog 测试Facebook Native iOS App - Testing Facebook Native iOS App
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM