Session.Builder
This class is no longer available in the most recent version of the SDK.
A more recent version of this class is available. Check out the latest version.

Builder class used to create a Session.

Extends:Object
Package:facebook
Constructors
Session.Builder(Context)

Constructs a new Builder associated with the context.

public Session.Builder(Context context)
ParameterDescription
contextThe Activity or Service starting the Session
Instance Methods
setApplicationId(String)

Sets the application id for the Session.

public Builder setApplicationId(String applicationId)
ParameterDescription
applicationIdThe application id
Returns
The Builder instance
setTokenCachingStrategy(TokenCachingStrategy)

Sets the TokenCachingStrategy for the Session.

public Builder setTokenCachingStrategy(TokenCachingStrategy tokenCachingStrategy)
ParameterDescription
tokenCachingStrategyThe token cache to use
Returns
The Builder instance
build()

Build the Session.

public Session build()
Returns
A new Session