Session.Builder
最新版的 SDK 已不支持此类。
这个类有新版本。查看 最新版本。

Builder class used to create a Session.

扩展:Object
应用安装包:facebook
构造函数
Session.Builder(Context)

Constructs a new Builder associated with the context.

public Session.Builder(Context context)
参数描述
contextThe Activity or Service starting the Session
实例方法
setApplicationId(String)

Sets the application id for the Session.

public Builder setApplicationId(String applicationId)
参数描述
applicationIdThe application id
Returns
The Builder instance
setTokenCachingStrategy(TokenCachingStrategy)

Sets the TokenCachingStrategy for the Session.

public Builder setTokenCachingStrategy(TokenCachingStrategy tokenCachingStrategy)
参数描述
tokenCachingStrategyThe token cache to use
Returns
The Builder instance
build()

Build the Session.

public Session build()
Returns
A new Session