From 49b8839fda3439edc31581527e84036e58f55f0f Mon Sep 17 00:00:00 2001 From: lpw <pengwei.li@gamehollywood.com> Date: Tue, 26 Jan 2021 09:43:00 +0800 Subject: [PATCH] 3.9.2 --- frameworks/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 43 insertions(+), 1 deletions(-) diff --git a/frameworks/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h b/frameworks/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h index 94f9f8f..82a9b3d 100644 --- a/frameworks/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h +++ b/frameworks/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h @@ -18,8 +18,13 @@ #import <Foundation/Foundation.h> -#import <FBSDKCoreKit/FBSDKCopying.h> +#import "FBSDKCopying.h" + +#ifdef BUCK #import <FBSDKCoreKit/FBSDKGraphRequestConnection.h> +#else +#import "FBSDKGraphRequestConnection.h" +#endif NS_ASSUME_NONNULL_BEGIN @@ -158,6 +163,11 @@ @property (nonatomic, copy, readonly) NSString *userID; /** + The graph domain where this access token is valid. + */ +@property (nonatomic, copy, readonly) NSString *graphDomain; + +/** Returns whether the access token is expired by checking its expirationDate property */ @property (readonly, assign, nonatomic, getter=isExpired) BOOL expired; @@ -202,6 +212,38 @@ NS_DESIGNATED_INITIALIZER; /** + Convenience initializer. + @param tokenString the opaque token string. + @param permissions the granted permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param declinedPermissions the declined permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param expiredPermissions the expired permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param appID the app ID. + @param userID the user ID. + @param expirationDate the optional expiration date (defaults to distantFuture). + @param refreshDate the optional date the token was last refreshed (defaults to today). + @param dataAccessExpirationDate the date which data access will expire for the given user + (defaults to distantFuture). + @param graphDomain the domain this access token can be used in. + + This initializer should only be used for advanced apps that + manage tokens explicitly. Typical login flows only need to use `FBSDKLoginManager` + along with `+currentAccessToken`. + */ +- (instancetype)initWithTokenString:(NSString *)tokenString + permissions:(NSArray<NSString *> *)permissions + declinedPermissions:(NSArray<NSString *> *)declinedPermissions + expiredPermissions:(NSArray<NSString *> *)expiredPermissions + appID:(NSString *)appID + userID:(NSString *)userID + expirationDate:(nullable NSDate *)expirationDate + refreshDate:(nullable NSDate *)refreshDate + dataAccessExpirationDate:(nullable NSDate *)dataAccessExpirationDate + graphDomain:(nullable NSString *)graphDomain; + +/** Convenience getter to determine if a permission has been granted @param permission The permission to check. */ -- Gitblit v1.8.0