com.facebook
Enum AccessTokenSource

java.lang.Object
  extended by java.lang.Enum<AccessTokenSource>
      extended by com.facebook.AccessTokenSource
All Implemented Interfaces:
Serializable, Comparable<AccessTokenSource>

public enum AccessTokenSource
extends Enum<AccessTokenSource>

Indicates where a Facebook access token was obtained from.


Enum Constant Summary
CLIENT_TOKEN
          Indicates an access token constructed with a Client Token.
FACEBOOK_APPLICATION_NATIVE
          Indicates an access token was obtained by the user logging in through the Facebook app for Android using the native login dialog.
FACEBOOK_APPLICATION_SERVICE
          Indicates an access token was obtained by asking the Facebook app for the current token based on permissions the user has already granted to the app.
FACEBOOK_APPLICATION_WEB
          Indicates an access token was obtained by the user logging in through the Facebook app for Android using the web login dialog.
NONE
          Indicates an access token has not been obtained, or is otherwise invalid.
TEST_USER
          Indicates an access token is for a test user rather than an actual Facebook user.
WEB_VIEW
          Indicates an access token was obtained by the user logging in through the Web-based dialog.
 
Method Summary
static AccessTokenSource valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AccessTokenSource[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final AccessTokenSource NONE
Indicates an access token has not been obtained, or is otherwise invalid.


FACEBOOK_APPLICATION_WEB

public static final AccessTokenSource FACEBOOK_APPLICATION_WEB
Indicates an access token was obtained by the user logging in through the Facebook app for Android using the web login dialog.


FACEBOOK_APPLICATION_NATIVE

public static final AccessTokenSource FACEBOOK_APPLICATION_NATIVE
Indicates an access token was obtained by the user logging in through the Facebook app for Android using the native login dialog.


FACEBOOK_APPLICATION_SERVICE

public static final AccessTokenSource FACEBOOK_APPLICATION_SERVICE
Indicates an access token was obtained by asking the Facebook app for the current token based on permissions the user has already granted to the app. No dialog was shown to the user in this case.


WEB_VIEW

public static final AccessTokenSource WEB_VIEW
Indicates an access token was obtained by the user logging in through the Web-based dialog.


TEST_USER

public static final AccessTokenSource TEST_USER
Indicates an access token is for a test user rather than an actual Facebook user.


CLIENT_TOKEN

public static final AccessTokenSource CLIENT_TOKEN
Indicates an access token constructed with a Client Token.

Method Detail

values

public static AccessTokenSource[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AccessTokenSource c : AccessTokenSource.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AccessTokenSource valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null