Facebook登录使用FBSessionLoginBehaviorForcingWebView [英] Facebook Login Using FBSessionLoginBehaviorForcingWebView

查看:671
本文介绍了Facebook登录使用FBSessionLoginBehaviorForcingWebView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下代码向iOS 7应用中的用户提供Facebook Embedded WebView对话框

I am using the following code to present the user with the Facebook Embedded WebView Dialog in an iOS 7 app

FBSession *session = [[FBSession alloc] initWithPermissions:@[@"basic_info", @"email"]];
[FBSession setActiveSession:session];
[session openWithBehavior:FBSessionLoginBehaviorForcingWebView completionHandler:^(FBSession *session, FBSessionState status, NSError *error) {
    [self sessionStateChanged:session state:status error:error];
}];

在我的开发iPad上,我看到Facebook对话框和登录视图很好。在iPhone上,对话框填满了屏幕,但旋转进度指示器就是永远在这里。我们的质量检查小组正在看到两台设备上都没有结束的旋转进度指标。

On my development iPad, I see the Facebook dialog and login view just fine. On iPhone, the dialog fills the screen just fine, but the spinning progress indicator just sits there forever. Our QA team is seeing the never ending spinning progress indicator on both devices.

有没有人看到这种行为?我即将放弃并实施移动Safari登录对话框。

Has anyone else seen this behavior? I am about to give up and just implement the Mobile Safari Login Dialog.

推荐答案

我使用

FBSessionLoginBehaviorWithFallbackToWebView

它适用于

编辑:您可能还需要检查以确保您已经开启了高级设置嵌入式浏览器OAuth登录 Facebook应用程序。

EDIT: You may also want to check to make sure you have the Advanced setting "Embedded Browser OAuth Login" turned on for you Facebook app.

这篇关于Facebook登录使用FBSessionLoginBehaviorForcingWebView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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