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

A request used to open a Session.

확장:AuthorizationRequest
패키지:facebook
생성자
Session.OpenRequest(Activity)

Constructs an OpenRequest.

public Session.OpenRequest(Activity activity)
매개변수설명
activityThe Activity to use to open the Session
Session.OpenRequest(Fragment)

Constructs an OpenRequest.

public Session.OpenRequest(Fragment fragment)
매개변수설명
fragmentThe Fragment to use to open the Session
인스턴스 메서드
setCallback(StatusCallback)

Sets the StatusCallback for the OpenRequest.

public final OpenRequest setCallback(StatusCallback statusCallback)
매개변수설명
statusCallbackThe SessionStatusCallback to notify regarding Session state changes.
Returns
The OpenRequest object to allow for chaining
setLoginBehavior(SessionLoginBehavior)

Sets the login behavior for the OpenRequest.

public final OpenRequest setLoginBehavior(SessionLoginBehavior loginBehavior)
매개변수설명
loginBehaviorThe SessionLoginBehavior that specifies what behaviors should be attempted during authorization.
Returns
The OpenRequest object to allow for chaining
setRequestCode(int)

Sets the request code for the OpenRequest.

public final OpenRequest setRequestCode(int requestCode)
매개변수설명
requestCodeAn integer that identifies this request. This integer will be used as the request code in onActivityResult.onActivityResult. This integer should be >= 0. If a value < 0 is passed in, then a default value will be used.
Returns
The OpenRequest object to allow for chaining
setPermissions(List)

Sets the permissions for the OpenRequest.

public final OpenRequest setPermissions(List permissions)
매개변수설명
permissionsA List&lt;String&gt; representing the permissions to request during the authentication flow. A null or empty List represents basic permissions.
Returns
The OpenRequest object to allow for chaining
setPermissions(String)

Sets the permissions for the OpenRequest.

public final OpenRequest setPermissions(String permissions)
매개변수설명
permissionsThe permissions to request during the authentication flow.
Returns
The OpenRequest object to allow for chaining
setDefaultAudience(SessionDefaultAudience)

Sets the defaultAudience for the OpenRequest.

This is only used during Native login using a sufficiently recent facebook app.

public final OpenRequest setDefaultAudience(SessionDefaultAudience defaultAudience)
매개변수설명
defaultAudienceA SessionDefaultAudience representing the default audience setting to request.
Returns
The OpenRequest object to allow for chaining