Represents an immutable access token for using Facebook services.Confo dịch - Represents an immutable access token for using Facebook services.Confo Việt làm thế nào để nói

Represents an immutable access toke

Represents an immutable access token for using Facebook services.
Conforms to: FBSDKCopying, NSSecureCoding
Superclass: NSObject
Declared in: FBSDKAccessToken.h
Tính năng
appID
Returns the app ID.
@property (readonly, copy, nonatomic) NSString *appID;
Declared In: FBSDKAccessToken.h
declinedPermissions
Returns the known declined permissions.
@property (readonly, copy, nonatomic) NSSet *declinedPermissions;
Declared In: FBSDKAccessToken.h
expirationDate
Returns the expiration date.
@property (readonly, copy, nonatomic) NSDate *expirationDate;
Declared In: FBSDKAccessToken.h
permissions
Returns the known granted permissions.
@property (readonly, copy, nonatomic) NSSet *permissions;
Declared In: FBSDKAccessToken.h
refreshDate
Returns the date the token was last refreshed.
@property (readonly, copy, nonatomic) NSDate *refreshDate;
Declared In: FBSDKAccessToken.h
tokenString
Returns the opaque token string.
@property (readonly, copy, nonatomic) NSString *tokenString;
Declared In: FBSDKAccessToken.h
userID
Returns the user ID.
@property (readonly, copy, nonatomic) NSString *userID;
Declared In: FBSDKAccessToken.h
Class Methods
currentAccessToken
Returns the "global" access token that represents the currently logged in user.
+ (FBSDKAccessToken *) currentAccessToken;
Discussion:
The currentAccessToken is a convenient representation of the token of the current user and is used by other SDK components (like FBSDKLoginManager).
Declared In: FBSDKAccessToken.h
refreshCurrentAccessToken:
Refresh the current access token's permission state and extend the token's expiration date, if possible.
Thông số Mô Tả
completionHandler
An optional callback handler that can surface any errors related to permission refreshing.
+ (void) refreshCurrentAccessToken:(FBSDKGraphRequestHandler)completionHandler;
Discussion:
On a successful refresh, the currentAccessToken will be updated so you typically only need to observe the FBSDKAccessTokenDidChangeNotification notification. If a token is already expired, it cannot be refreshed.
Declared In: FBSDKAccessToken.h
setCurrentAccessToken:
Sets the "global" access token that represents the currently logged in user.
Thông số Mô Tả
token
The access token to set.
+ (void) setCurrentAccessToken:(FBSDKAccessToken *)token;
Discussion:
This will broadcast a notification and save the token to the app keychain.
Declared In: FBSDKAccessToken.h
Instance Methods
hasGranted:
Convenience getter to determine if a permission has been granted
Thông số Mô Tả
permission
The permission to check.
- (BOOL) hasGranted:(NSString *)permission;
Declared In: FBSDKAccessToken.h
initWithTokenString:permissions:declinedPermissions:appID:userID:expirationDate:refreshDate:
Initializes a new instance.
Thông số Mô Tả
tokenString
The opaque token string.
permissions
The granted permissions. Note this is converted to NSSet and is only an NSArray for the convenience of literal syntax.
declinedPermissions
The declined permissions. Note this is converted to NSSet and is only an NSArray for the convenience of literal syntax.
appID
The app ID.
userID
The user ID.
expirationDate
The optional expiration date (defaults to distantFuture).
refreshDate
The optional date the token was last refreshed (defaults to today).
- (instancetype)
initWithTokenString: (NSString *)tokenString
permissions: (NSArray *)permissions
declinedPermissions: (NSArray *)declinedPermissions
appID: (NSString *)appID
userID: (NSString *)userID
expirationDate: (NSDate *)expirationDate
refreshDate: (NSDate *)refreshDate
NS_DESIGNATED_INITIALIZER;
Discussion:
This initializer should only be used for advanced apps that manage tokens explicitly. Typical login flows only need to use FBSDKLoginManager along with +currentAccessToken.
Declared In: FBSDKAccessToken.h
isEqualToAccessToken:
Compares the receiver to another FBSDKAccessToken
Thông số Mô Tả
token
The other token
- (BOOL) isEqualToAccessToken:(FBSDKAccessToken *)token;
Declared In: FBSDKAccessToken.h
Constants
FBSDKAccessTokenDidChangeNotification
FBSDK_EXTER N NSString *const FBSDKAccessTokenDidChangeNotification;
Discussion:
The userInfo dictionary of the notification will contain keys FBSDKAccessTokenChangeOldKey and FBSDKAccessTokenChangeNewKey.
Declared In: FBSDKAccessToken.h
FBSDKAccessTokenDidChangeUserID
FBSDK_EXTER N NSString *const FBSDKAccessTokenDidChangeUserID;
Discussion:
Token refreshes can occur automatically with the SDK which do not change the user. If you're only interested in user changes (such as logging out), you should check for the existence of this key. The value is a NSNumber with a boolValue. On a fresh start of the app where the SDK reads in the cached value of an access token, this key will also exist since the access token is moving from a null state (no user) to a non-null state (user).
Declared In: FBSDKAccessToken.h
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Represents an immutable access token for using Facebook services.Conforms to: FBSDKCopying, NSSecureCodingSuperclass: NSObjectDeclared in: FBSDKAccessToken.hTính năngappIDReturns the app ID.@property (readonly, copy, nonatomic) NSString *appID;Declared In: FBSDKAccessToken.hdeclinedPermissionsReturns the known declined permissions.@property (readonly, copy, nonatomic) NSSet *declinedPermissions;Declared In: FBSDKAccessToken.hexpirationDateReturns the expiration date.@property (readonly, copy, nonatomic) NSDate *expirationDate;Declared In: FBSDKAccessToken.hpermissionsReturns the known granted permissions.@property (readonly, copy, nonatomic) NSSet *permissions;Declared In: FBSDKAccessToken.hrefreshDateReturns the date the token was last refreshed.@property (readonly, copy, nonatomic) NSDate *refreshDate;Declared In: FBSDKAccessToken.htokenStringReturns the opaque token string.@property (readonly, copy, nonatomic) NSString *tokenString;Declared In: FBSDKAccessToken.huserIDReturns the user ID.@property (readonly, copy, nonatomic) NSString *userID;Declared In: FBSDKAccessToken.hClass MethodscurrentAccessTokenReturns the "global" access token that represents the currently logged in user.+ (FBSDKAccessToken *) currentAccessToken;Discussion:The currentAccessToken is a convenient representation of the token of the current user and is used by other SDK components (like FBSDKLoginManager).Declared In: FBSDKAccessToken.hrefreshCurrentAccessToken:Refresh the current access token's permission state and extend the token's expiration date, if possible.Thông số Mô TảcompletionHandler An optional callback handler that can surface any errors related to permission refreshing.+ (void) refreshCurrentAccessToken:(FBSDKGraphRequestHandler)completionHandler;Discussion:On a successful refresh, the currentAccessToken will be updated so you typically only need to observe the FBSDKAccessTokenDidChangeNotification notification. If a token is already expired, it cannot be refreshed.Declared In: FBSDKAccessToken.hsetCurrentAccessToken:Sets the "global" access token that represents the currently logged in user.Thông số Mô Tảtoken The access token to set.+ (void) setCurrentAccessToken:(FBSDKAccessToken *)token;Discussion:This will broadcast a notification and save the token to the app keychain.Declared In: FBSDKAccessToken.hInstance MethodshasGranted:Convenience getter to determine if a permission has been grantedThông số Mô Tảpermission The permission to check.- (BOOL) hasGranted:(NSString *)permission;Declared In: FBSDKAccessToken.hinitWithTokenString:permissions:declinedPermissions:appID:userID:expirationDate:refreshDate:Initializes a new instance.Thông số Mô TảtokenString The opaque token string.permissions The granted permissions. Note this is converted to NSSet and is only an NSArray for the convenience of literal syntax.declinedPermissions
The declined permissions. Note this is converted to NSSet and is only an NSArray for the convenience of literal syntax.
appID
The app ID.
userID
The user ID.
expirationDate
The optional expiration date (defaults to distantFuture).
refreshDate
The optional date the token was last refreshed (defaults to today).
- (instancetype)
initWithTokenString: (NSString *)tokenString
permissions: (NSArray *)permissions
declinedPermissions: (NSArray *)declinedPermissions
appID: (NSString *)appID
userID: (NSString *)userID
expirationDate: (NSDate *)expirationDate
refreshDate: (NSDate *)refreshDate
NS_DESIGNATED_INITIALIZER;
Discussion:
This initializer should only be used for advanced apps that manage tokens explicitly. Typical login flows only need to use FBSDKLoginManager along with +currentAccessToken.
Declared In: FBSDKAccessToken.h
isEqualToAccessToken:
Compares the receiver to another FBSDKAccessToken
Thông số Mô Tả
token
The other token
- (BOOL) isEqualToAccessToken:(FBSDKAccessToken *)token;
Declared In: FBSDKAccessToken.h
Constants
FBSDKAccessTokenDidChangeNotification
FBSDK_EXTER N NSString *const FBSDKAccessTokenDidChangeNotification;
Discussion:
The userInfo dictionary of the notification will contain keys FBSDKAccessTokenChangeOldKey and FBSDKAccessTokenChangeNewKey.
Declared In: FBSDKAccessToken.h
FBSDKAccessTokenDidChangeUserID
FBSDK_EXTER N NSString *const FBSDKAccessTokenDidChangeUserID;
Discussion:
Token refreshes can occur automatically with the SDK which do not change the user. If you're only interested in user changes (such as logging out), you should check for the existence of this key. The value is a NSNumber with a boolValue. On a fresh start of the app where the SDK reads in the cached value of an access token, this key will also exist since the access token is moving from a null state (no user) to a non-null state (user).
Declared In: FBSDKAccessToken.h
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2025 I Love Translation. All reserved.

E-mail: