小编Ser*_*nin的帖子

iOS 6 facebook Auth应用程序状态

我在iOS6上使用SDK 3.1进行Facebook身份验证.我有一个使用旧FB SDK的现有应用程序.

显然,我已经实施了:

[FBSession openActiveSessionWithReadPermissions:permissions
                                       allowLoginUI:YES
                                  completionHandler:
     ^(FBSession *session,
       FBSessionState state, NSError *error) {
         [self sessionStateChanged:session state:state error:error];
}];
Run Code Online (Sandbox Code Playgroud)

但最初我在第一次登录尝试后得到了FBSessionStateClosedLoginFailed的"错误2".

没有提供身份验证对话框.应用程序最初在iOS设置 - > Facebook中处于非活动状态.

我尝试了几种解决方案,但默认情况下,在配置了Facebook帐户的任何新设备上都禁用该设置.

请帮忙 :)

authentication facebook

9
推荐指数
1
解决办法
237
查看次数

标签 统计

authentication ×1

facebook ×1