在Facebook IOS SDK中禁用单点登录(SSO) [英] Disable Single Sign On (SSO) in Facebook IOS SDK

查看:284
本文介绍了在Facebook IOS SDK中禁用单点登录(SSO)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经构建了一个使用Facebook SDK的iOS应用程序。不幸的是,我们的客户要求我们在应用程序中禁用后台处理,这意味着Facebook单点登录(SSO)方案对我们不起作用(因为我们的应用程序现在在登录/授权后启动时从头开始在Facebook应用程序中。

We've built an iOS app that uses the Facebook SDK. Unfortunately, our client has asked that we disable backgrounding in the app and this means that the Facebook single-sign on (SSO) scheme doesn't work for us (as our app now starts from scratch when it is launched after the login/authorisation in the Facebook app).

所以问题是:我们可以在Facebook iOS SDK中禁用SSO,使其行为与在Facebook登录时的旧版SDK中的行为相同在应用内网页视图中发生/授权?

So the question is: can we disable SSO in the Facebook iOS SDK such that it behaves like it did in older SDK versions with the Facebook login/ authorization happening within an in-app web-view?

推荐答案

在FBconnect库中打开Facebook.m文件并找到:

Open Facebook.m file in FBconnect library and find:

- (void)authorize:(NSArray *)permissions
         delegate:(id<FBSessionDelegate>)delegate {

设置:

   [self authorizeWithFBAppAuth:NO safariAuth:NO];

FBconnect只会在内部弹出窗口进行授权...

And FBconnect will authorize only with inside popup...

这篇关于在Facebook IOS SDK中禁用单点登录(SSO)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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