Klasse User

Alle implementierten Schnittstellen:
HasCover, HasProfilePicture, Serializable

public class User extends NamedFacebookType implements HasProfilePicture, HasCover
Represents the User Graph API type.
Seit:
1.5
Autor:
Mark Allen, Patrick Alberts
Siehe auch:
  • Konstruktordetails

    • User

      public User()
  • Methodendetails

    • getBirthdayAsDate

      The user's birthday, typed to java.util.Date if possible.
      Gibt zurück:
      The user's birthday, or null if unavailable or only available in month/year format.
    • jsonMappingCompleted

      protected void jsonMappingCompleted(JsonMapper jsonMapper)
    • getHometownName

      The user's hometown name.
      Gibt zurück:
      The user's hometown name.
    • getIdsForApps

      Businesses can claim ownership of multiple apps using Business Manager. This method returns the list of IDs that this user has in any of those other apps
      Gibt zurück:
      list of ids a user has in other apps
    • addIdsForApps

      public boolean addIdsForApps(UserIDForApp userId)
    • removeIdsForApps

      public boolean removeIdsForApps(UserIDForApp userId)
    • getIdsForBusiness

      Businesses can claim ownership of multiple apps using Business Manager. This edge returns the list of IDs that this user has in any of those other apps
      Gibt zurück:
      list of ids a user has in other apps
    • addIdsForBusiness

      public boolean addIdsForBusiness(UserIDForApp userId)
    • removeIdsForBusiness

      public boolean removeIdsForBusiness(UserIDForApp userId)
    • getIdsForPages

      Businesses can claim ownership of apps and pages using Business Manager. This edge returns the list of IDs that this user has in any of the pages owned by this business.
      Gibt zurück:
      list of ids a user has in other pages
    • addIdsForPages

      public boolean addIdsForPages(UserIDForPage userId)
    • removeIdsForPages

      public boolean removeIdsForPages(UserIDForPage userId)
    • getMeetingFor

      What genders the user is interested in meeting.
      Gibt zurück:
      What genders the user is interested in meeting.
    • addMeetingFor

      public boolean addMeetingFor(String gender)
    • removeMeetingFor

      public boolean removeMeetingFor(String gender)
    • getDevices

      The list of devices the person is using. This will return only iOS and Android devices
      Gibt zurück:
      The list of devices the person is using.
    • addDevice

      public boolean addDevice(User.UserDevice device)
    • removeDevice

      public boolean removeDevice(User.UserDevice device)
    • getSports

      A list of the sports from the user's profile.
      Gibt zurück:
      A list of the sports from this user's profile.
    • addSport

      public boolean addSport(User.Sport sportItem)
    • removeSport

      public boolean removeSport(User.Sport sportItem)
    • getFavoriteTeams

      A list of the favorite sports teams from the user's profile.
      Gibt zurück:
      A list of the favorite sports teams from the user's profile.
    • addFavoriteTeam

      public boolean addFavoriteTeam(User.Experience team)
    • removeFavoriteTeam

      public boolean removeFavoriteTeam(User.Experience team)
    • getFavoriteAthletes

      A list of the favorite athletes from the user's profile.
      Gibt zurück:
      A list of the favorite athletes from the user's profile.
    • addFavoriteAthlete

      public boolean addFavoriteAthlete(User.Experience athlet)
    • removeFavoriteAthlete

      public boolean removeFavoriteAthlete(User.Experience athlet)
    • getInspirationalPeople

      The person's inspirational people.
      Gibt zurück:
      The person's inspirational people.
    • addInspirationalPeople

      public boolean addInspirationalPeople(User.Experience person)
    • removeInspirationalPeople

      public boolean removeInspirationalPeople(User.Experience person)
    • getLanguages

      A list of the languages from the user's profile.
      Gibt zurück:
      A list of the languages from the user's profile.
    • addLanguage

      public boolean addLanguage(User.Experience language)
    • removeLanguage

      public boolean removeLanguage(User.Experience language)
    • getLabels

      Page labels of this user
      Gibt zurück:
      labels of this user
    • addLabel

      public boolean addLabel(PageLabel label)
    • removeLabels

      public boolean removeLabels(PageLabel label)
    • getInvitableFriends

      A list of friends that can be invited to install a Facebook Canvas app
      Gibt zurück:
      A list of friends that can be invited to install a Facebook Canvas app
    • addInvitableFriend

      public boolean addInvitableFriend(UserInvitableFriend friend)
    • removeInvitableFriend

      public boolean removeInvitableFriend(UserInvitableFriend friend)
    • getContext

      Social context for this person
      Gibt zurück:
      Social context for this person
    • setContext

      public void setContext(FacebookType context)
      Social context for this person
    • getFirstName

      public String getFirstName()
      The user's first name.
      Gibt zurück:
      The user's first name.
    • setFirstName

      public void setFirstName(String firstName)
      The user's first name.
    • getMiddleName

      The user's middle name.
      Gibt zurück:
      The user's middle name.
    • setMiddleName

      public void setMiddleName(String middleName)
      The user's middle name.
    • getNameFormat

      The person's name formatted to correctly handle Chinese, Japanese, or Korean ordering.
      Gibt zurück:
      The person's name formatted to correctly handle Chinese, Japanese, or Korean ordering
    • setNameFormat

      public void setNameFormat(String nameFormat)
      The person's name formatted to correctly handle Chinese, Japanese, or Korean ordering.
    • getPaymentPricepoints

      The person's payment pricepoints
      Gibt zurück:
      The person's payment pricepoints
    • setPaymentPricepoints

      public void setPaymentPricepoints(User.PaymentPricepoints paymentPricepoints)
      The person's payment pricepoints
    • getLastName

      public String getLastName()
      The user's last name.
      Gibt zurück:
      The user's last name.
    • setLastName

      public void setLastName(String lastName)
      The user's last name.
    • getShortName

      Shortened, locale-aware name for the person.
      Gibt zurück:
      Shortened, locale-aware name for the person
    • setShortName

      public void setShortName(String shortName)
      Shortened, locale-aware name for the person.
    • getCover

      public CoverPhoto getCover()
      The person's cover photo
      Angegeben von:
      getCover in Schnittstelle HasCover
      Gibt zurück:
      The person's cover photo
    • setCover

      public void setCover(CoverPhoto cover)
      The person's cover photo
    • getLink

      public String getLink()
      A link to the user's profile.
      Gibt zurück:
      A link to the user's profile.
    • setLink

      public void setLink(String link)
      A link to the user's profile.
    • getBio

      @GraphAPI(until="2.7") public String getBio()
      The user's biographical snippet.
      Gibt zurück:
      The user's biographical snippet.
    • setBio

      public void setBio(String bio)
      The user's biographical snippet.
    • getQuotes

      public String getQuotes()
      The user's favorite quotes.
      Gibt zurück:
      The user's favorite quotes.
    • setQuotes

      public void setQuotes(String quotes)
      The user's favorite quotes.
    • getAgeRange

      Unspecific age range that this person's age fits into.
      Gibt zurück:
      The user's age range
    • setAgeRange

      public void setAgeRange(User.AgeRange ageRange)
      Unspecific age range that this person's age fits into.
    • 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.

      Gibt zurück:
      The user's birthday as a String.
    • setBirthday

      public void setBirthday(String birthday)
      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.

    • getEmail

      public String getEmail()
      The proxied or contact email address granted by the user.
      Gibt zurück:
      The proxied or contact email address granted by the user.
    • setEmail

      public void setEmail(String email)
      The proxied or contact email address granted by the user.
    • getTimezone

      public Double getTimezone()
      The user's timezone offset.
      Gibt zurück:
      The user's timezone offset.
    • setTimezone

      public void setTimezone(Double timezone)
      The user's timezone offset.
    • getVerified

      public Boolean getVerified()
      Indicates whether the account has been verified. This is distinct from the is_verified field. Someone is considered verified if they take any of the following actions:
      • Register for mobile
      • Confirm their account via SMS
      • Enter a valid credit card
      Gibt zurück:
      User verification status.
    • setVerified

      public void setVerified(Boolean verified)
      Indicates whether the account has been verified. This is distinct from the is_verified field. Someone is considered verified if they take any of the following actions:
      • Register for mobile
      • Confirm their account via SMS
      • Enter a valid credit card
    • getVideoUploadLimits

      Video upload limits
      Gibt zurück:
      Video upload limits
    • setVideoUploadLimits

      public void setVideoUploadLimits(User.VideoUploadLimits videoUploadLimits)
      Video upload limits
    • getGender

      public String getGender()
      The user's gender.
      Gibt zurück:
      The user's gender.
    • setGender

      public void setGender(String gender)
      The user's gender.
    • getLocale

      public String getLocale()
      The user's locale.
      Gibt zurück:
      The user's locale.
    • setLocale

      public void setLocale(String locale)
      The user's locale.
    • getPublicKey

      public String getPublicKey()
      The person's PGP public key
      Gibt zurück:
      The person's PGP public key
    • setPublicKey

      public void setPublicKey(String publicKey)
      The person's PGP public key
    • getLikes

      public Likes getLikes()
      The user's Likes
      Gibt zurück:
      the user's Likes
    • setLikes

      public void setLikes(Likes likes)
      The user's Likes
    • getPicture

      The user's picture, if provided. To force Facebook to fill the picture field you have to fetch the user with the fields=picture parameter, otherwise the picture is null.
      Angegeben von:
      getPicture in Schnittstelle HasProfilePicture
      Gibt zurück:
      the user's picture as ProfilePictureSource object
      Seit:
      1.6.16
    • setPicture

      public void setPicture(ProfilePictureSource picture)
      The user's picture, if provided. To force Facebook to fill the picture field you have to fetch the user with the fields=picture parameter, otherwise the picture is null.
      Seit:
      1.6.16
    • getHometown

      Duplicate mapping for "hometown" since FB can return it differently in different situations. -- GETTER -- The user's hometown.

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

      Gibt zurück:
      The user's hometown.
    • setHometown

      public void setHometown(NamedFacebookType hometown)
      Duplicate mapping for "hometown" since FB can return it differently in different situations. -- GETTER -- The user's hometown.

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

    • getLocation

      The user's current location.
      Gibt zurück:
      The user's current location.
    • setLocation

      public void setLocation(NamedFacebookType location)
      The user's current location.
    • getSharedLoginUpgradeRequiredBy

      The time that the shared loginneeds to be upgraded to Business Manager by
      Gibt zurück:
      The time that the shared loginneeds to be upgraded to Business Manager by
    • setSharedLoginUpgradeRequiredBy

      public void setSharedLoginUpgradeRequiredBy(Date sharedLoginUpgradeRequiredBy)
      The time that the shared loginneeds to be upgraded to Business Manager by
    • getSignificantOther

      The user's significant other.
      Gibt zurück:
      The user's significant other.
    • setSignificantOther

      public void setSignificantOther(NamedFacebookType significantOther)
      The user's significant other.
    • getUpdatedTime

      public Date getUpdatedTime()
      Date the user's profile was updated.
      Gibt zurück:
      Date the user's profile was updated.
    • setUpdatedTime

      public void setUpdatedTime(Date updatedTime)
      Date the user's profile was updated.
    • getThirdPartyId

      An anonymous, but unique identifier for the user.
      Gibt zurück:
      An anonymous, but unique identifier for the user.
    • setThirdPartyId

      public void setThirdPartyId(String thirdPartyId)
      An anonymous, but unique identifier for the user.
    • getCurrency

      The user's currency preferences.

      Further documentation available on Facebook's Displaying prices in user's currency page.

      Gibt zurück:
      The user's currency preferences.
      Seit:
      1.6.12
    • setCurrency

      public void setCurrency(User.Currency currency)
      The user's currency preferences.

      Further documentation available on Facebook's Displaying prices in user's currency page.

      Seit:
      1.6.12
    • getTokenForBusiness

      This returns a string which is the same for this person across all the apps managed by the same Business Manager.
      Gibt zurück:
      string which is the same for a person across all apps managed by one company
      Seit:
      1.7.0
    • setTokenForBusiness

      public void setTokenForBusiness(String tokenForBusiness)
      This returns a string which is the same for this person across all the apps managed by the same Business Manager.
      Seit:
      1.7.0
    • getInstallType

      Install type.
      Gibt zurück:
      Install type.
    • setInstallType

      public void setInstallType(String installType)
      Install type.
    • getInstalled

      Is the app making the request installed?
      Gibt zurück:
      Is the app making the request installed?
    • setInstalled

      public void setInstalled(Boolean installed)
      Is the app making the request installed?
    • getIsVerified

      People with large numbers of followers can have the authenticity of their identity manually verified by Facebook. This field indicates whether the person's profile is verified in this way. This is distinct from the verified field
      Gibt zurück:
      Is the user verified
    • setIsVerified

      public void setIsVerified(Boolean isVerified)
      People with large numbers of followers can have the authenticity of their identity manually verified by Facebook. This field indicates whether the person's profile is verified in this way. This is distinct from the verified field
    • getIsGuestUser

      if the current user is a guest user. should always return false.
    • setIsGuestUser

      public void setIsGuestUser(Boolean isGuestUser)
      if the current user is a guest user. should always return false.