AWSFacebookSignInProvider Class Reference

Inherits from NSObject
Conforms to AWSSignInProvider
AWSSignInProviderApplicationIntercept
Declared in AWSFacebookSignInProvider.h
AWSFacebookSignInProvider.m

Overview

AWSFacebookSignInProvider adopts the AWSSignInProvider protocol.

It works with the FacebookLoginSDK internally and uses the Facebook App ID specified in the info.plist file.

Other Methods

+ sharedInstance

Fetches the singleton instance of AWSFacebookSignInProvider.

+ (instancetype)sharedInstance

Return Value

the singleton instance of AWSFacebookSignInProvider

Declared In

AWSFacebookSignInProvider.h

– setLoginBehavior:

Sets the login behavior of the Facebook SignIn SDK. Choices are listed in enum FBSDKLoginBehavior. Default behaviors for iOS: 9+ SFSafariViewController used. 8 WebViewController used. @loginBehavior a FBSDKLoginBehavior enum entry

- (void)setLoginBehavior:(NSUInteger)loginBehavior

Declared In

AWSFacebookSignInProvider.h

– setPermissions:

Sets the permissions requested during login. Default behavior is no permissions are required.

- (void)setPermissions:(NSArray *)permissions

Declared In

AWSFacebookSignInProvider.h

– setViewControllerForFacebookSignIn:

Sets the ViewController used for Facebook SignIn. Defaults to nil and handled by Facebook SDK.

- (void)setViewControllerForFacebookSignIn:(UIViewController *)signInViewController

Declared In

AWSFacebookSignInProvider.h

Other Methods

– isLoggedIn

Determines if a user is logged in.

- (BOOL)isLoggedIn

Declared In

AWSSignInProvider.h

– reloadSession

The handler method for managing the session reload for the Sign-In Provider. The completionHandler will bubble back errors to the developers.

- (void)reloadSession

Declared In

AWSSignInProvider.h

– login:

The login handler method for the Sign-In Provider. The completionHandler will bubble back errors to the developers.

- (void)login:(AWSSignInManagerCompletionBlock)completionHandler

Declared In

AWSSignInProvider.h

– logout

The logout handler method for the Sign-In Provider.

- (void)logout

Declared In

AWSSignInProvider.h

– interceptApplication:didFinishLaunchingWithOptions:

Passes parameters used to launch the application to the current identity provider. For some third party providers, this completes the User Sign-in call flow, which used a browser to get information from the user, directly. The current sign-in provider will be set to nil if the sign-in provider is not registered using registerAWSSignInProvider:forKey method of AWSSignInProviderFactory class.

- (BOOL)interceptApplication:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

Parameters

application

application

launchOptions

options used to launch the application

Return Value

true if this call handled the operation

Declared In

AWSSignInProviderApplicationIntercept.h

– interceptApplication:openURL:sourceApplication:annotation:

Passes parameters used to launch the application to the current identity provider. For some third party providers, this completes the User Sign-in call flow, which used a browser to get information from the user, directly.

- (BOOL)interceptApplication:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation

Parameters

application

application

url

url used to open the application

sourceApplication

source application

annotation

annotation

Return Value

true if this call handled the operation

Declared In

AWSSignInProviderApplicationIntercept.h