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 methods may be used. The SDK will determine the best behavior based on the current device (such as iOS version).

Definition

typedef NS_ENUM(NSUInteger, FBSDKLoginBehavior ) {
   FBSDKLoginBehaviorNative = 0,
   FBSDKLoginBehaviorBrowser,
   FBSDKLoginBehaviorSystemAccount,
   FBSDKLoginBehaviorWeb,
};

Constants

FBSDKLoginBehaviorNative

This is the default behavior, and indicates logging in through the native Facebook app may be used. The SDK may still use Safari instead.

Declared In FBSDKLoginManager.h.

FBSDKLoginBehaviorBrowser

Attempts log in through the Safari or SFSafariViewController, if available.

Declared In FBSDKLoginManager.h.

FBSDKLoginBehaviorSystemAccount

Attempts log in through the Facebook account currently signed in through the device Settings.

Declared In FBSDKLoginManager.h.

FBSDKLoginBehaviorWeb

Attempts log in through a modal \c UIWebView pop up

Declared In FBSDKLoginManager.h.

Declared In

FBSDKLoginManager.h