From 13e53a03f4d50169d0cf7f72d414753ae6b421ce Mon Sep 17 00:00:00 2001 From: hank <hank.zhang@proficientcity.com> Date: Tue, 22 Jan 2019 11:04:39 +0800 Subject: [PATCH] 添加V3.8.0 --- frameworks/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h | 41 ++++++++++++++++++++++++++++------------- 1 files changed, 28 insertions(+), 13 deletions(-) diff --git a/frameworks/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h b/frameworks/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h index 258303e..7b579d0 100644 --- a/frameworks/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h +++ b/frameworks/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h @@ -24,8 +24,8 @@ /** 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); @@ -128,25 +128,25 @@ /** -- 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 @@ -164,11 +164,11 @@ /** 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 @@ -184,6 +184,21 @@ 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 @@ -196,7 +211,7 @@ 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 -- Gitblit v1.8.0