com.google.code.facebookapi
Enum ProfileField

java.lang.Object
  extended by java.lang.Enum<ProfileField>
      extended by com.google.code.facebookapi.ProfileField
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ProfileField>

public enum ProfileField
extends java.lang.Enum<ProfileField>

Enum for specifying profile-field names. When making API calls, you can generally just pass a set of literal strings specifying field-names if your prefer.


Enum Constant Summary
ABOUT_ME
          More information about the user being queried.
ACTIVITIES
          The activities of the user being queried.
AFFILIATIONS
          The networks to which the user being queried belongs.
ALLOWED_RESTRICTIONS
          A comma delimited list of Demographic Restrictions types a user is allowed to access.
BIRTHDAY
          The birthday of the user being queried.
BOOKS
          The favorite books of the user being queried.
CURRENT_LOCATION
          The current location of the user being queried.
EDUCATION_HISTORY
          Post-high school information for the user being queried.
EMAIL_HASHES
          An array containing a set of confirmed email hashes for the user.
FIRST_NAME
          The first name of the user being queried.
HAS_ADDED_APP
          Deprecated. 
HOMETOWN_LOCATION
          The home town (and state) of the user being queried.
HS_INFO
          Information about high school of the user being queried.
INTERESTS
          The interests of the user being queried.
IS_APP_USER
          Indicates whether the user being queried has logged in to the current application.
LAST_NAME
          The last name of the user being queried.
LOCALE
          The two-letter country code for the user's locale.
MEETING_FOR
          The reason the user being queried wants to meet someone.
MEETING_SEX
          The sex of the person the user being queried wants to meet.
MOVIES
          The favorite movies of the user being queried.
MUSIC
          The favorite music of the user being queried.
NAME
          The full name of the user being queried.
NOTES_COUNT
          The number of notes from the user being queried.
ONLINE_PRESENCE
          The user's Facebook Chat status.
PIC
          The URL to the medium-sized profile picture for the user being queried.
PIC_BIG
          The URL to the largest-sized profile picture for the user being queried.
PIC_BIG_WITH_LOGO
          The URL to the largest-sized profile picture for the user being queried.
PIC_SMALL
          The URL to the small-sized profile picture for the user being queried.
PIC_SMALL_WITH_LOGO
          The URL to the small-sized profile picture for the user being queried.
PIC_SQUARE
          The URL to the square profile picture for the user being queried.
PIC_SQUARE_WITH_LOGO
          The URL to the square profile picture for the user being queried.
PIC_WITH_LOGO
          The URL to the medium-sized profile picture for the user being queried.
POLITICAL
          The political views of the user being queried.
PROFILE_UPDATE_TIME
          The time the profile of the user being queried was most recently updated.
PROFILE_URL
          The URL to a user's profile.
PROXIED_EMAIL
          The proxied wrapper for a user's email address.
QUOTES
          The favorite quotes of the user being queried.
RELATIONSHIP_STATUS
          The type of relationship for the user being queried.
RELIGION
          The religion of the user being queried.
SEX
          The sex of the user being queried.
SIGNIFICANT_OTHER_ID
          The user ID of the partner (for example, husband, wife, boyfriend, girlfriend) of the user being queried.
STATUS
          The current status of the user being queried.
TIMEZONE
          The time zone where the user being queried is located.
TV
          The favorite television shows of the user being queried.
UID
          The user ID of the user being queried.
VERIFIED
          Indicates whether or not Facebook has verified the user.
WALL_COUNT
          The number of wall posts for the user being queried.
WORK_HISTORY
          The work history of the user being queried.
 
Method Summary
 java.lang.String fieldName()
           
 boolean isName(java.lang.String name)
           
 java.lang.String toString()
           
static ProfileField valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ProfileField[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UID

public static final ProfileField UID
The user ID of the user being queried.


FIRST_NAME

public static final ProfileField FIRST_NAME
The first name of the user being queried.


LAST_NAME

public static final ProfileField LAST_NAME
The last name of the user being queried.


NAME

public static final ProfileField NAME
The full name of the user being queried.


PIC_SMALL

public static final ProfileField PIC_SMALL
The URL to the small-sized profile picture for the user being queried. The image can have a maximum width of 50px and a maximum height of 150px. This URL may be blank.


PIC_BIG

public static final ProfileField PIC_BIG
The URL to the largest-sized profile picture for the user being queried. The image can have a maximum width of 200px and a maximum height of 600px. This URL may be blank.


PIC_SQUARE

public static final ProfileField PIC_SQUARE
The URL to the square profile picture for the user being queried. The image can have a maximum width and height of 50px. This URL may be blank.


PIC

public static final ProfileField PIC
The URL to the medium-sized profile picture for the user being queried. The image can have a maximum width of 100px and a maximum height of 300px. This URL may be blank.


AFFILIATIONS

public static final ProfileField AFFILIATIONS
The networks to which the user being queried belongs.


PROFILE_UPDATE_TIME

public static final ProfileField PROFILE_UPDATE_TIME
The time the profile of the user being queried was most recently updated. If the user's profile has not been updated in the past three days, this value will be 0.


TIMEZONE

public static final ProfileField TIMEZONE
The time zone where the user being queried is located.


RELIGION

public static final ProfileField RELIGION
The religion of the user being queried.


BIRTHDAY

public static final ProfileField BIRTHDAY
The birthday of the user being queried.


SEX

public static final ProfileField SEX
The sex of the user being queried.


HOMETOWN_LOCATION

public static final ProfileField HOMETOWN_LOCATION
The home town (and state) of the user being queried.


MEETING_SEX

public static final ProfileField MEETING_SEX
The sex of the person the user being queried wants to meet.


MEETING_FOR

public static final ProfileField MEETING_FOR
The reason the user being queried wants to meet someone.


RELATIONSHIP_STATUS

public static final ProfileField RELATIONSHIP_STATUS
The type of relationship for the user being queried.


SIGNIFICANT_OTHER_ID

public static final ProfileField SIGNIFICANT_OTHER_ID
The user ID of the partner (for example, husband, wife, boyfriend, girlfriend) of the user being queried.


POLITICAL

public static final ProfileField POLITICAL
The political views of the user being queried.


CURRENT_LOCATION

public static final ProfileField CURRENT_LOCATION
The current location of the user being queried.


ACTIVITIES

public static final ProfileField ACTIVITIES
The activities of the user being queried.


INTERESTS

public static final ProfileField INTERESTS
The interests of the user being queried.


IS_APP_USER

public static final ProfileField IS_APP_USER
Indicates whether the user being queried has logged in to the current application.


MUSIC

public static final ProfileField MUSIC
The favorite music of the user being queried.


TV

public static final ProfileField TV
The favorite television shows of the user being queried.


MOVIES

public static final ProfileField MOVIES
The favorite movies of the user being queried.


BOOKS

public static final ProfileField BOOKS
The favorite books of the user being queried.


QUOTES

public static final ProfileField QUOTES
The favorite quotes of the user being queried.


ABOUT_ME

public static final ProfileField ABOUT_ME
More information about the user being queried.


HS_INFO

public static final ProfileField HS_INFO
Information about high school of the user being queried.


EDUCATION_HISTORY

public static final ProfileField EDUCATION_HISTORY
Post-high school information for the user being queried.


WORK_HISTORY

public static final ProfileField WORK_HISTORY
The work history of the user being queried.


NOTES_COUNT

public static final ProfileField NOTES_COUNT
The number of notes from the user being queried.


WALL_COUNT

public static final ProfileField WALL_COUNT
The number of wall posts for the user being queried.


STATUS

public static final ProfileField STATUS
The current status of the user being queried.


HAS_ADDED_APP

@Deprecated
public static final ProfileField HAS_ADDED_APP
Deprecated. 
[Deprecated] This value is now equivalent to is_app_user.


ONLINE_PRESENCE

public static final ProfileField ONLINE_PRESENCE
The user's Facebook Chat status. Returns a string, one of active, idle, offline, or error (when Facebook can't determine presence information on the server side). The query does not return the user's Facebook Chat status when that information is restricted for privacy reasons.


LOCALE

public static final ProfileField LOCALE
The two-letter country code for the user's locale. Codes used are the ISO 3166 alpha 2 code list.


PROXIED_EMAIL

public static final ProfileField PROXIED_EMAIL
The proxied wrapper for a user's email address.


PROFILE_URL

public static final ProfileField PROFILE_URL
The URL to a user's profile.


EMAIL_HASHES

public static final ProfileField EMAIL_HASHES
An array containing a set of confirmed email hashes for the user. Emails are registered via the connect.registerUsers API call and are only confirmed when the user adds your application. The format of each email hash is the crc32 and md5 hashes of the email address combined with an underscore (_).


PIC_SMALL_WITH_LOGO

public static final ProfileField PIC_SMALL_WITH_LOGO
The URL to the small-sized profile picture for the user being queried. The image can have a maximum width of 50px and a maximum height of 150px, and is overlaid with the Facebook favicon. This URL may be blank.


PIC_BIG_WITH_LOGO

public static final ProfileField PIC_BIG_WITH_LOGO
The URL to the largest-sized profile picture for the user being queried. The image can have a maximum width of 200px and a maximum height of 600px, and is overlaid with the Facebook favicon. This URL may be blank.


PIC_SQUARE_WITH_LOGO

public static final ProfileField PIC_SQUARE_WITH_LOGO
The URL to the square profile picture for the user being queried. The image can have a maximum width and height of 50px, and is overlaid with the Facebook favicon. This URL may be blank.


PIC_WITH_LOGO

public static final ProfileField PIC_WITH_LOGO
The URL to the medium-sized profile picture for the user being queried. The image can have a maximum width of 100px and a maximum height of 300px, and is overlaid with the Facebook favicon. This URL may be blank.


ALLOWED_RESTRICTIONS

public static final ProfileField ALLOWED_RESTRICTIONS
A comma delimited list of Demographic Restrictions types a user is allowed to access. Currently, alcohol is the only type that can get returned.


VERIFIED

public static final ProfileField VERIFIED
Indicates whether or not Facebook has verified the user.

Method Detail

values

public static ProfileField[] 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 (ProfileField c : ProfileField.values())
    System.out.println(c);

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

valueOf

public static ProfileField valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

fieldName

public java.lang.String fieldName()
Returns:
the name of the field

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<ProfileField>

isName

public boolean isName(java.lang.String name)
Parameters:
name - the name to check against
Returns:
true if this field has the specified name.


Copyright © 2010. All Rights Reserved.