FBSDKLoginBehavior Constants Reference
Declared in | FBSDKLoginManager.h |
FBSDKLoginBehavior
@typedef FBSDKLoginBehavior enum
@abstract Passed to the \c FBSDKLoginManager to indicate how Facebook Login should be attempted.
@discussion Facebook Login authorizes the application to act on behalf of the user, using the user’s Facebook account. Usually a Facebook Login will rely on an account maintained outside of the application, by the native Facebook application, the browser, or perhaps the device itself. This avoids the need for a user to enter their username and password directly, and provides the most secure and lowest friction way for a user to authorize the application to interact with Facebook.
The \c FBSDKLoginBehavior enum specifies which log in method should be attempted. Most applications will use the default, which attempts a login through the Facebook app and falls back to the browser if needed.
If log in cannot be completed using the specificed behavior, the completion handler will be invoked with an error in the \c FBSDKErrorDomain and a code of \c FBSDKLoginUnknownErrorCode.
Definition
typedef NS_ENUM(NSUInteger, FBSDKLoginBehavior ) {
FBSDKLoginBehaviorNative = 0,
FBSDKLoginBehaviorBrowser,
FBSDKLoginBehaviorSystemAccount,
FBSDKLoginBehaviorWeb,
};
Constants
FBSDKLoginBehaviorNative
-
Attempts log in through the native Facebook app. If the Facebook app is not installed on the device, falls back to \c FBSDKLoginBehaviorBrowser. This is the default behavior.
Declared In
FBSDKLoginManager.h
. FBSDKLoginBehaviorBrowser
-
Attempts log in through the Safari browser
Declared In
FBSDKLoginManager.h
. FBSDKLoginBehaviorSystemAccount
-
Attempts log in through the Facebook account currently signed in through Settings. If no Facebook account is signed in, falls back to \c FBSDKLoginBehaviorNative.
Declared In
FBSDKLoginManager.h
. FBSDKLoginBehaviorWeb
-
Attemps log in through a modal \c UIWebView pop up
Declared In
FBSDKLoginManager.h
.
Declared In
FBSDKLoginManager.h