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)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
– setUserName:
The User Name of a user.
- (void)setUserName:(NSString *)userName
Declared In
AWSSignInProvider.h
– setImageURL:
The URL for profile image of a user.
- (void)setImageURL:(NSURL *)imageURL
Declared 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)setCachedLoginFlag
Declared In
AWSSignInProvider.h
– isCachedLoginFlagSet
Fetches the status of the cached login flag set using setCachedLoginFlag
.
- (BOOL)isCachedLoginFlagSet
Return 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)clearCachedLoginFlag
Declared In
AWSSignInProvider.h
– reloadSession
The handler method for managing the session reload for the Sign-In Provider.
- (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:(AWSIdentityManagerCompletionBlock)completionHandler
Declared In
AWSSignInProvider.h
– logout
The logout handler method for the Sign-In Provider.
- (void)logout
Declared In
AWSSignInProvider.h