| | |
| | | |
| | | /** |
| | | Describes the call back to the FBSDKLoginManager |
| | | - Parameter result: the result of the authorization |
| | | - Parameter error: the authorization error, if any. |
| | | @param result the result of the authorization |
| | | @param error the authorization error, if any. |
| | | */ |
| | | typedef void (^FBSDKLoginManagerRequestTokenHandler)(FBSDKLoginManagerLoginResult *result, NSError *error); |
| | | |
| | |
| | | @interface FBSDKLoginManager : NSObject |
| | | |
| | | /** |
| | | Auth type |
| | | */ |
| | | @property (strong, nonatomic) NSString *authType; |
| | | /** |
| | | the default audience. |
| | | |
| | | you should set this if you intend to ask for publish permissions. |
| | |
| | | |
| | | /** |
| | | |
| | | - Warning:use logInWithReadPermissions:fromViewController:handler: instead |
| | | @warning use logInWithReadPermissions:fromViewController:handler: instead |
| | | */ |
| | | - (void)logInWithReadPermissions:(NSArray *)permissions handler:(FBSDKLoginManagerRequestTokenHandler)handler |
| | | __attribute__ ((deprecated("use logInWithReadPermissions:fromViewController:handler: instead"))); |
| | | DEPRECATED_MSG_ATTRIBUTE("use logInWithReadPermissions:fromViewController:handler: instead"); |
| | | |
| | | /** |
| | | |
| | | - Warning:use logInWithPublishPermissions:fromViewController:handler: instead |
| | | @warning use logInWithPublishPermissions:fromViewController:handler: instead |
| | | */ |
| | | - (void)logInWithPublishPermissions:(NSArray *)permissions handler:(FBSDKLoginManagerRequestTokenHandler)handler |
| | | __attribute__ ((deprecated("use logInWithPublishPermissions:fromViewController:handler: instead"))); |
| | | DEPRECATED_MSG_ATTRIBUTE("use logInWithPublishPermissions:fromViewController:handler: instead"); |
| | | |
| | | /** |
| | | Logs the user in or authorizes additional permissions. |
| | | - Parameter permissions: the optional array of permissions. Note this is converted to NSSet and is only |
| | | @param permissions the optional array of permissions. Note this is converted to NSSet and is only |
| | | an NSArray for the convenience of literal syntax. |
| | | - Parameter fromViewController: the view controller to present from. If nil, the topmost view controller will be |
| | | @param fromViewController the view controller to present from. If nil, the topmost view controller will be |
| | | automatically determined as best as possible. |
| | | - Parameter handler: the callback. |
| | | @param handler the callback. |
| | | |
| | | Use this method when asking for read permissions. You should only ask for permissions when they |
| | | are needed and explain the value to the user. You can inspect the result.declinedPermissions to also |
| | |
| | | |
| | | /** |
| | | Logs the user in or authorizes additional permissions. |
| | | - Parameter permissions: the optional array of permissions. Note this is converted to NSSet and is only |
| | | @param permissions the optional array of permissions. Note this is converted to NSSet and is only |
| | | an NSArray for the convenience of literal syntax. |
| | | - Parameter fromViewController: the view controller to present from. If nil, the topmost view controller will be |
| | | @param fromViewController the view controller to present from. If nil, the topmost view controller will be |
| | | automatically determined as best as possible. |
| | | - Parameter handler: the callback. |
| | | @param handler the callback. |
| | | |
| | | Use this method when asking for publish permissions. You should only ask for permissions when they |
| | | are needed and explain the value to the user. You can inspect the result.declinedPermissions to also |
| | |
| | | fromViewController:(UIViewController *)fromViewController |
| | | handler:(FBSDKLoginManagerRequestTokenHandler)handler; |
| | | |
| | | |
| | | /** |
| | | Requests user's permission to reathorize application's data access, after it has expired due to inactivity. |
| | | @param fromViewController the view controller to present from. If nil, the topmost view controller will be |
| | | automatically determined as best as possible. |
| | | @param handler the callback. |
| | | Use this method when you need to reathorize your app's access to user data via Graph API, after such an access has expired. |
| | | You should provide as much context to the user as possible as to why you need to reauthorize the access, the scope of |
| | | access being reathorized, and what added value your app provides when the access is reathorized. |
| | | You can inspect the result.declinedPermissions to also provide more information to the user if they decline permissions. |
| | | This method will present UI the user. You typically should call this if `[FBSDKAccessToken isDataAccessExpired]` returns true. |
| | | */ |
| | | - (void)reauthorizeDataAccess:(UIViewController *)fromViewController |
| | | handler:(FBSDKLoginManagerRequestTokenHandler)handler; |
| | | |
| | | /** |
| | | Logs the user out |
| | | |
| | |
| | | |
| | | Issues an asynchronous renewCredentialsForAccount call to the device's Facebook account store. |
| | | |
| | | - Parameter handler: The completion handler to call when the renewal is completed. This can be invoked on an arbitrary thread. |
| | | @param handler The completion handler to call when the renewal is completed. This can be invoked on an arbitrary thread. |
| | | |
| | | |
| | | This can be used to explicitly renew account credentials and is provided as a convenience wrapper around |