AWSFacebookSignInProvider Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | AWSSignInProvider |
| 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)sharedInstanceReturn 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)loginBehaviorDeclared In
AWSFacebookSignInProvider.h
– setPermissions:
Sets the permissions requested during login. Default behavior is no permissions are required.
- (void)setPermissions:(NSArray *)permissionsDeclared In
AWSFacebookSignInProvider.h
– setViewControllerForFacebookSignIn:
Sets the ViewController used for Facebook SignIn. Defaults to nil and handled by Facebook SDK.
- (void)setViewControllerForFacebookSignIn:(UIViewController *)signInViewControllerDeclared In
AWSFacebookSignInProvider.h
Other Methods
– setUserName:
The User Name of a user.
- (void)setUserName:(NSString *)userNameDeclared In
AWSSignInProvider.h
– setImageURL:
The URL for profile image of a user.
- (void)setImageURL:(NSURL *)imageURLDeclared In
AWSSignInProvider.h
– setCachedLoginFlag
Call this method on a successful login. This method should store a flag in persistent storage which determines if the user has signed-in using this sign-in provider.
This method is called by AWSIdentityManager on interceptApplication:didFinishLaunchingWithOptions method to set the current sign-in provider.
- (void)setCachedLoginFlagDeclared In
AWSSignInProvider.h
– isCachedLoginFlagSet
Fetches the status of the cached login flag set using setCachedLoginFlag.
- (BOOL)isCachedLoginFlagSetReturn Value
YES if the setCachedLoginFlag is set.
Declared In
AWSSignInProvider.h
– clearCachedLoginFlag
Clears the cached login flag. This method should be called during logout to clear the stored flag.
- (void)clearCachedLoginFlagDeclared In
AWSSignInProvider.h
– reloadSession
The handler method for managing the session reload for the Sign-In Provider.
- (void)reloadSessionDeclared In
AWSSignInProvider.h
– login:
The login handler method for the Sign-In Provider. The completionHandler will bubble back errors to the developers.
- (void)login:(AWSIdentityManagerCompletionBlock)completionHandlerDeclared In
AWSSignInProvider.h
– logout
The logout handler method for the Sign-In Provider.
- (void)logoutDeclared In
AWSSignInProvider.h