com.restfb.types
Class User

java.lang.Object
  extended by com.restfb.types.FacebookType
      extended by com.restfb.types.NamedFacebookType
          extended by com.restfb.types.User
All Implemented Interfaces:
Serializable

public class User
extends NamedFacebookType

Represents the User Graph API type.

Since:
1.5
Author:
Mark Allen, Patrick Alberts
See Also:
Serialized Form

Nested Class Summary
static class User.Education
          Represents the Education Graph API type.
static class User.EducationClass
          Represents the Class Graph API type.
static class User.Sport
          Represents the Sport Graph API type.
static class User.Work
          Represents the Work Graph API type.
 
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
 
Constructor Summary
User()
           
 
Method Summary
 String getAbout()
          The user's blurb that appears under their profile picture.
 String getBio()
          The user's biographical snippet.
 String getBirthday()
          The user's birthday as a String.
 Date getBirthdayAsDate()
          The user's birthday, typed to java.util.Date if possible.
 List<User.Education> getEducation()
          A list of the education history from the user's profile.
 String getEmail()
          The proxied or contact email address granted by the user.
 List<NamedFacebookType> getFavoriteAthletes()
          A list of the favorite athletes from the user's profile.
 List<NamedFacebookType> getFavoriteTeams()
          A list of the favorite sports teams from the user's profile.
 String getFirstName()
          The user's first name.
 String getGender()
          The user's gender.
 NamedFacebookType getHometown()
          The user's hometown.
 String getHometownName()
          The user's hometown name.
 List<String> getInterestedIn()
          The user's interests.
 List<NamedFacebookType> getLanguages()
          A list of the languages from the user's profile.
 String getLastName()
          The user's last name.
 String getLink()
          A link to the user's profile.
 String getLocale()
          The user's locale.
 NamedFacebookType getLocation()
          The user's current location.
 List<String> getMeetingFor()
          What genders the user is interested in meeting.
 String getMiddleName()
          The user's middle name.
 String getPolitical()
          The user's political affiliation.
 String getQuotes()
          The user's favorite quotes.
 String getRelationshipStatus()
          The user's relationship status.
 String getReligion()
          The user's religion.
 NamedFacebookType getSignificantOther()
          The user's significant other.
 List<User.Sport> getSports()
          A list of the sports from the user's profile.
 String getThirdPartyId()
          An anonymous, but unique identifier for the user.
 Double getTimezone()
          The user's timezone offset.
 Date getUpdatedTime()
          Date the user's profile was updated.
 String getUsername()
          The user's Facebook username.
 Boolean getVerified()
          Is the user verified?
 String getWebsite()
          A link to the user's personal website.
 List<User.Work> getWork()
          A list of the work history from the user's profile.
 
Methods inherited from class com.restfb.types.NamedFacebookType
getName
 
Methods inherited from class com.restfb.types.FacebookType
equals, getId, getMetadata, getType, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

User

public User()
Method Detail

getFirstName

public String getFirstName()
The user's first name.

Returns:
The user's first name.

getMiddleName

public String getMiddleName()
The user's middle name.

Returns:
The user's middle name.

getLastName

public String getLastName()
The user's last name.

Returns:
The user's last name.

getLink

public String getLink()
A link to the user's profile.

Returns:
A link to the user's profile.

getAbout

public String getAbout()
The user's blurb that appears under their profile picture.

Returns:
The user's blurb that appears under their profile picture.

getRelationshipStatus

public String getRelationshipStatus()
The user's relationship status.

Returns:
The user's relationship status.

getBirthday

public String getBirthday()
The user's birthday as a String.

Will always succeed, even if the user has specified month/year format only. If you'd like to use a typed version of this accessor, call getBirthdayAsDate() instead.

Returns:
The user's birthday as a String.

getBirthdayAsDate

public Date getBirthdayAsDate()
The user's birthday, typed to java.util.Date if possible.

Returns:
The user's birthday, or null if unavailable or only available in month/year format.

getReligion

public String getReligion()
The user's religion.

Returns:
The user's religion.

getWebsite

public String getWebsite()
A link to the user's personal website.

Returns:
A link to the user's personal website.

getEmail

public String getEmail()
The proxied or contact email address granted by the user.

Returns:
The proxied or contact email address granted by the user.

getQuotes

public String getQuotes()
The user's favorite quotes.

Returns:
The user's favorite quotes.

getTimezone

public Double getTimezone()
The user's timezone offset.

Returns:
The user's timezone offset.

getVerified

public Boolean getVerified()
Is the user verified?

Returns:
User verification status.

getUpdatedTime

public Date getUpdatedTime()
Date the user's profile was updated.

Returns:
Date the user's profile was updated.

getGender

public String getGender()
The user's gender.

Returns:
The user's gender.

getBio

public String getBio()
The user's biographical snippet.

Returns:
The user's biographical snippet.

getPolitical

public String getPolitical()
The user's political affiliation.

Returns:
The user's political affiliation.

getLocale

public String getLocale()
The user's locale.

Returns:
The user's locale.

getUsername

public String getUsername()
The user's Facebook username.

Returns:
The user's Facebook username.
Since:
1.6.5

getHometown

public NamedFacebookType getHometown()
The user's hometown.

Sometimes this can be null - check getHometownName() instead in that case.

Returns:
The user's hometown.

getHometownName

public String getHometownName()
The user's hometown name.

Returns:
The user's hometown name.

getLocation

public NamedFacebookType getLocation()
The user's current location.

Returns:
The user's current location.

getSignificantOther

public NamedFacebookType getSignificantOther()
The user's significant other.

Returns:
The user's significant other.

getThirdPartyId

public String getThirdPartyId()
An anonymous, but unique identifier for the user.

Returns:
An anonymous, but unique identifier for the user.

getInterestedIn

public List<String> getInterestedIn()
The user's interests.

Returns:
The user's interests.

getMeetingFor

public List<String> getMeetingFor()
What genders the user is interested in meeting.

Returns:
What genders the user is interested in meeting.

getWork

public List<User.Work> getWork()
A list of the work history from the user's profile.

Returns:
A list of the work history from the user's profile.

getEducation

public List<User.Education> getEducation()
A list of the education history from the user's profile.

Returns:
A list of the education history from the user's profile.

getSports

public List<User.Sport> getSports()
A list of the sports from the user's profile.

Returns:
A list of the sports from ths user's profile.

getFavoriteTeams

public List<NamedFacebookType> getFavoriteTeams()
A list of the favorite sports teams from the user's profile.

Returns:
A list of the favorite sports teams from the user's profile.

getFavoriteAthletes

public List<NamedFacebookType> getFavoriteAthletes()
A list of the favorite athletes from the user's profile.

Returns:
A list of the favorite athletes from the user's profile.

getLanguages

public List<NamedFacebookType> getLanguages()
A list of the languages from the user's profile.

Returns:
A list of the languages from the user's profile.


RestFB 1.6.8. Copyright © 2010-2011 Mark Allen. All Rights Reserved.