FBTestUserSession
Lớp này không còn khả dụng trong phiên bản gần đây nhất của SDK.
Đã có phiên bản mới hơn của lớp này. Hãy kiểm tra phiên bản mới nhất.

A "headless" (no UI) FBSession subclass that requires a token and is used for testing.

Discussion:

This will generally be used with FBTestUsersManager to help exercise integration tests with Facebook. Use the class method sessionWithAccessTokenData: to construct instances.

Note the supplied token data is not read until the session instance is "opened" (i.e., it will never be in a "TokenLoaded" state) and uses [FBSessionTokenCachingStrategy nullCacheInstance].

Furthermore, reauthorization calls will succeed as a no-op (no new permissions added). You may toggle the treatReauthorizeAsCancellation property to get cancellation treatment.

Inherits from:FBSession
Declared in:FBTestUserSession.h
Thuộc tính
forceAccessTokenExtension

Flag to force extending a token expiration at the next opportunity.

@property (nonatomic, assign) BOOL forceAccessTokenExtension;
Đã tuyên bố trong: FBTestUserSession.h
treatReauthorizeAsCancellation

Flag to treat reauthorize calls as cancelled.

@property (nonatomic, assign) BOOL treatReauthorizeAsCancellation;
Discussion:

Defaults to NO. If set to YES, reauthorize calls will receive a nil token as if the user had cancelled the reauthorize.

Đã tuyên bố trong: FBTestUserSession.h
Phương thức nhóm
sessionWithAccessTokenData:

Returns an instance

+ (instancetype) sessionWithAccessTokenData:(FBAccessTokenData *)tokenData;
Discussion:

This should be used in place of any init methods.

Đã tuyên bố trong: FBTestUserSession.h