默认情况下如何使FBLoginView使用系统帐户 [英] How to make FBLoginView use system account by default
问题描述
iOS Facebook SDK(3.12)的早期版本已允许在FBLoginView中指定loginBehavior属性以使用系统帐户:
Previous versions of iOS Facebook SDK (3.12) has allowed to specify loginBehavior property at FBLoginView to use system account: https://developers.facebook.com/docs/reference/ios/3.12/class/FBLoginView/
如何在最新版本的SDK中实现相同的行为(使用FBSessionLoginBehaviorUseSystemAccountIfPresent)?
How can I implement same behavior (use FBSessionLoginBehaviorUseSystemAccountIfPresent) in latest version of SDK?
推荐答案
SDK的哪个版本有问题.所有的v3.x版本的SDK都提供了您提到的loginBehavior属性.在SDK的v4.0版本(3月25日发布)中,FBLoginView被FBSDKLoginButton取代,并且仍然提供了loginBehavior属性.
Which version of the SDK are you having problems with. All the v3.x versions of the SDKs provide that loginBehavior property like you mentioned. In v4.0 of the SDK (released March 25), the FBLoginView is replaced by FBSDKLoginButton and still offers a loginBehavior property.
这篇关于默认情况下如何使FBLoginView使用系统帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!