FBAccessTokenData
이 클래스는 더 이상 최신 버전의 SDK에서 사용할 수 없습니다.
이 클래스의 최신 버전을 사용할 수 있습니다. 확인해보세요 최신 버전.

Represents an access token used for the Facebook login flow and includes associated metadata such as expiration date and permissions. You should use factory methods (createToken...) to construct instances and should be treated as immutable.

Discussion:

For more information, see https://developers.facebook.com/docs/concepts/login/access-tokens-and-types/.

Conforms to:NSCopying
Inherits from:NSObject
Declared in:FBAccessTokenData.h
속성
accessToken

Returns the access token NSString.

@property (readonly, nonatomic, copy) NSString *accessToken;
정의된 값: FBAccessTokenData.h
expirationDate

Returns the expiration date of the access token.

@property (readonly, nonatomic, copy) NSDate *expirationDate;
정의된 값: FBAccessTokenData.h
loginType

Returns the login type associated with the token.

@property (readonly, nonatomic) FBSessionLoginType loginType;
정의된 값: FBAccessTokenData.h
permissions

Returns the permissions associated with the access token.

@property (readonly, nonatomic, copy) NSArray *permissions;
정의된 값: FBAccessTokenData.h
refreshDate

Returns the date the token was last refreshed.

@property (readonly, nonatomic, copy) NSDate *refreshDate;
정의된 값: FBAccessTokenData.h
클래스 메서드
createTokenFromDictionary:

Creates an FBAccessTokenData from a dictionary or returns nil if required data is missing.

매개변수설명
dictionary

The dictionary with FBSessionTokenCachingStrategy keys.

+ (FBAccessTokenData *) createTokenFromDictionary:(NSDictionary *)dictionary;
정의된 값: FBAccessTokenData.h
createTokenFromFacebookURL:appID:urlSchemeSuffix:

Creates an FBAccessTokenData from an App Link provided by the Facebook application or nil if the url is not valid.

매개변수설명
url

The url provided.

appID

Needed in order to verify URL format.

urlSchemeSuffix

Needed in order to verify URL format.

+ (FBAccessTokenData *)
createTokenFromFacebookURL: (NSURL *)url
appID: (NSString *)appID
urlSchemeSuffix: (NSString *)urlSchemeSuffix;
정의된 값: FBAccessTokenData.h
createTokenFromString:permissions:expirationDate:loginType:refreshDate:

Creates an FBAccessTokenData from existing information or returns nil if required data is missing.

매개변수설명
accessToken

The token string. If nil or empty, this method will return nil.

permissions

The permissions set. A value of nil indicates basic permissions.

expirationDate

The expiration date. A value of nil defaults to [NSDate distantFuture].

loginType

The login source of the token.

refreshDate

The date that token was last refreshed. A value of nil defaults to [NSDate date].

+ (FBAccessTokenData *)
createTokenFromString: (NSString *)accessToken
permissions: (NSArray *)permissions
expirationDate: (NSDate *)expirationDate
loginType: (FBSessionLoginType)loginType
refreshDate: (NSDate *)refreshDate;
정의된 값: FBAccessTokenData.h
인스턴스 메서드
dictionary

Returns a dictionary representation of this instance.

- (NSMutableDictionary *) dictionary;
Discussion:

This is provided for backwards compatibility with previous access token related APIs that used a NSDictionary (see FBSessionTokenCachingStrategy).

정의된 값: FBAccessTokenData.h
isEqualToAccessTokenData:

Returns a Boolean value that indicates whether a given object is an FBAccessTokenData object and exactly equal the receiver.

매개변수설명
accessTokenData

The data to compare to the receiver.

- (BOOL) isEqualToAccessTokenData:(FBAccessTokenData *)accessTokenData;
정의된 값: FBAccessTokenData.h