Class Page

All Implemented Interfaces:
HasProfilePicture, Serializable
Direct Known Subclasses:
Account

public class Page extends CategorizedFacebookType implements HasProfilePicture
Represents the Page Graph API type.
Since:
1.5
Author:
Mark Allen
See Also:
  • Constructor Details

    • Page

      public Page()
  • Method Details

    • getScreenNames

      External accounts. Applicable to Pages representing people
      Returns:
      the list of screen names
    • addScreenName

      public boolean addScreenName(Page.ScreenName screenName)
    • removeScreenName

      public boolean removeScreenName(Page.ScreenName screenName)
    • getCategoryList

      the sub category list
      Returns:
      the sub category list
      Since:
      1.6.15
    • addCategory

      public boolean addCategory(Category category)
    • removeCategory

      public boolean removeCategory(Category category)
    • getEmails

      public List<String> getEmails()
      The emails listed in the About section of a Page.
      Returns:
      The emails listed in the About section of a Page
      Since:
      1.10.0
    • addEmail

      public boolean addEmail(String email)
    • removeEmail

      public boolean removeEmail(String email)
    • getFoodStyles

      The restaurant's food styles. Applicable to Restaurants
      Returns:
      The restaurant's food styles
      Since:
      1.10.0
    • addFoodStyle

      public boolean addFoodStyle(String foodStyle)
    • removeFoodStyle

      public boolean removeFoodStyle(String foodStyle)
    • getAdminNotes

      Notes of this page
      Returns:
      Notes of this page
    • addAdminNote

      public boolean addAdminNote(PageAdminNote adminNote)
    • removeAdminNote

      public boolean removeAdminNote(PageAdminNote adminNote)
    • getLabels

      Page labels of this page
      Returns:
      labels of this page
    • addLabel

      public boolean addLabel(PageLabel label)
    • removeLabels

      public boolean removeLabels(PageLabel label)
    • getInstagramAccounts

      Linked Instagram accounts for this Page
    • addInstagramAccount

      public boolean addInstagramAccount(InstagramUser igUser)
    • removeInstagramAccount

      public boolean removeInstagramAccount(InstagramUser igUser)
    • addMessengerAdsDefaultIcebreaker

      public boolean addMessengerAdsDefaultIcebreaker(String icebreaker)
    • removeMessengerAdsDefaultIcebreaker

      public boolean removeMessengerAdsDefaultIcebreaker(String icebreaker)
    • getMessengerAdsDefaultIcebreakers

    • convertLabels

      protected void convertLabels(JsonMapper jsonMapper)
    • fillProfilePicture

      protected void fillProfilePicture(JsonMapper jsonMapper)
    • graphApi26LikesFallback

      protected void graphApi26LikesFallback()
    • convertHours

      protected void convertHours()
    • getPicture

      The page's profile picture, if provided.

      To force Facebook to fill the picture field you have to fetch the page with the fields=picture parameter, otherwise the picture is null.

      Specified by:
      getPicture in interface HasProfilePicture
      Returns:
      the page's profile picture as ProfilePictureSource object
    • setPicture

      public void setPicture(ProfilePictureSource picture)
      The page's profile picture, if provided.

      To force Facebook to fill the picture field you have to fetch the page with the fields=picture parameter, otherwise the picture is null.

    • getAffiliation

      Affiliation of this person. Applicable to Pages representing people
      Returns:
      affiliation of this person
      Since:
      1.10.0
    • setAffiliation

      public void setAffiliation(String affiliation)
      Affiliation of this person. Applicable to Pages representing people
      Since:
      1.10.0
    • getAppId

      public String getAppId()
      App ID for app-owned Pages and app Pages.
      Returns:
      App ID for app-owned Pages and app Pages
    • setAppId

      public void setAppId(String appId)
      App ID for app-owned Pages and app Pages.
    • getArtistsWeLike

      Artists the band likes. Applicable to Bands
      Returns:
      artists the band likes
      Since:
      1.10.0
    • setArtistsWeLike

      public void setArtistsWeLike(String artistsWeLike)
      Artists the band likes. Applicable to Bands
      Since:
      1.10.0
    • getAssetScore

      relevance score of an asset.
      Returns:
      relevance score of an asset
    • setAssetScore

      public void setAssetScore(Double assetScore)
      relevance score of an asset.
    • getAttire

      public String getAttire()
      Dress code of the business. Applicable to Restaurants or Nightlife. Can be one of Casual, Dressy or Unspecified
      Returns:
      dress code of the business
      Since:
      1.10.0
    • setAttire

      public void setAttire(String attire)
      Dress code of the business. Applicable to Restaurants or Nightlife. Can be one of Casual, Dressy or Unspecified
      Since:
      1.10.0
    • getAwards

      public String getAwards()
      The awards information of the film. Applicable to Films
      Returns:
      the awards information of the film
      Since:
      1.10.0
    • setAwards

      public void setAwards(String awards)
      The awards information of the film. Applicable to Films
      Since:
      1.10.0
    • getBandInterests

      Band interests. Applicable to Bands
      Returns:
      band interests
      Since:
      1.10.0
    • setBandInterests

      public void setBandInterests(String bandInterests)
      Band interests. Applicable to Bands
      Since:
      1.10.0
    • getBandMembers

      Members of the band. Applicable to Bands
      Returns:
      members of the band
      Since:
      1.10.0
    • setBandMembers

      public void setBandMembers(String bandMembers)
      Members of the band. Applicable to Bands
      Since:
      1.10.0
    • getBestPage

      public Page getBestPage()
      The best available Page on Facebook for the concept represented by this Page. The best available Page takes into account authenticity and the number of likes
      Returns:
      The best available Page on Facebook for the concept represented by this Page
      Since:
      1.10.0
    • setBestPage

      public void setBestPage(Page bestPage)
      The best available Page on Facebook for the concept represented by this Page. The best available Page takes into account authenticity and the number of likes
      Since:
      1.10.0
    • getContactAddress

      The mailing or contact address for this page. This field will be blank if the contact address is the same as the physical address
      Returns:
      The mailing or contact address for this page
      Since:
      1.10.0
    • setContactAddress

      public void setContactAddress(Page.MailingAddress contactAddress)
      The mailing or contact address for this page. This field will be blank if the contact address is the same as the physical address
      Since:
      1.10.0
    • getCountryPageLikes

      If this is a Page in a Global Pages hierarchy, the number of people who are being directed to this Page.
      Returns:
      If this is a Page in a Global Pages hierarchy, the number of people who are being directed to this Page.
    • setCountryPageLikes

      public void setCountryPageLikes(Integer countryPageLikes)
      If this is a Page in a Global Pages hierarchy, the number of people who are being directed to this Page.
    • getCategory

      public String getCategory()
      The Page's category. e.g. Product/Service, Computers/Technology
      Overrides:
      getCategory in class CategorizedFacebookType
      Returns:
      The Page's category. e.g. Product/Service, Computers/Technology
    • setCategory

      public void setCategory(String category)
      The Page's category. e.g. Product/Service, Computers/Technology
      Overrides:
      setCategory in class CategorizedFacebookType
    • getBio

      public String getBio()
      Biography of the band. Applicable to Bands
      Returns:
      Biography of the band
      Since:
      1.10.0
    • setBio

      public void setBio(String bio)
      Biography of the band. Applicable to Bands
      Since:
      1.10.0
    • getBirthday

      public String getBirthday()
      Birthday of this person. Applicable to Pages representing people
      Returns:
      birthday of this person
      Since:
      1.10.0
    • setBirthday

      public void setBirthday(String birthday)
      Birthday of this person. Applicable to Pages representing people
      Since:
      1.10.0
    • getBuilt

      public String getBuilt()
      Year vehicle was built. Applicable to Vehicles
      Returns:
      Year vehicle was built
      Since:
      1.10.0
    • setBuilt

      public void setBuilt(String built)
      Year vehicle was built. Applicable to Vehicles
      Since:
      1.10.0
    • getBusiness

      The Business associated with this Page.
    • setBusiness

      public void setBusiness(Business business)
      The Business associated with this Page.
    • getCulinaryTeam

      Culinary team of the business. Applicable to Restaurants or Nightlife
      Returns:
      culinary team of the business
      Since:
      1.10.0
    • setCulinaryTeam

      public void setCulinaryTeam(String culinaryTeam)
      Culinary team of the business. Applicable to Restaurants or Nightlife
      Since:
      1.10.0
    • getCurrentLocation

      Current location of the Page.
      Returns:
      current location of the Page
      Since:
      1.10.0
    • setCurrentLocation

      public void setCurrentLocation(String currentLocation)
      Current location of the Page.
      Since:
      1.10.0
    • getFeatures

      public String getFeatures()
      Features of the vehicle. Applicable to Vehicles
      Returns:
      Features of the vehicle
      Since:
      1.10.0
    • setFeatures

      public void setFeatures(String features)
      Features of the vehicle. Applicable to Vehicles
      Since:
      1.10.0
    • getFollowersCount

      Number of page followers
      Returns:
      Number of page followers
    • setFollowersCount

      public void setFollowersCount(Long followersCount)
      Number of page followers
    • getGlobalBrandPageName

      The name of the Page with country codes appended for Global Brand Pages. Only visible to the Page admin
      Returns:
      The name of the Page with country codes appended for Global Brand Pages
      Since:
      1.10.0
    • setGlobalBrandPageName

      public void setGlobalBrandPageName(String globalBrandPageName)
      The name of the Page with country codes appended for Global Brand Pages. Only visible to the Page admin
      Since:
      1.10.0
    • getGlobalBrandRootId

      This brand's global Root ID.
      Returns:
      This brand's global Root ID
    • setGlobalBrandRootId

      public void setGlobalBrandRootId(String globalBrandRootId)
      This brand's global Root ID.
    • getGlobalBrandParentPage

      This brand's global (parent) Page.
      Returns:
      this brand's global (parent) Page
      Since:
      1.10.0
    • setGlobalBrandParentPage

      public void setGlobalBrandParentPage(Page globalBrandParentPage)
      This brand's global (parent) Page.
      Since:
      1.10.0
    • getHasAddedApp

      Indicates whether this Page has added the app making the query in a Page tab.
      Returns:
      Indicates whether this Page has added the app making the query in a Page tab
      Since:
      1.10.0
    • setHasAddedApp

      public void setHasAddedApp(Boolean hasAddedApp)
      Indicates whether this Page has added the app making the query in a Page tab.
      Since:
      1.10.0
    • getHasWhatsappNumber

      has whatsapp number
      Returns:
      has whatsapp number
    • setHasWhatsappNumber

      public void setHasWhatsappNumber(Boolean hasWhatsappNumber)
      has whatsapp number
    • getHasWhatsappBusinessNumber

      Indicates whether WhatsApp number connected to this page is a WhatsApp business number
      Returns:
      Whatsapp business number
    • setHasWhatsappBusinessNumber

      public void setHasWhatsappBusinessNumber(Boolean hasWhatsappBusinessNumber)
      Indicates whether WhatsApp number connected to this page is a WhatsApp business number
    • getHometown

      public String getHometown()
      Hometown of the band. Applicable to Bands
      Returns:
      Hometown of the band
      Since:
      1.10.0
    • setHometown

      public void setHometown(String hometown)
      Hometown of the band. Applicable to Bands
      Since:
      1.10.0
    • getHours

      public Hours getHours()
      Opening hours
      Since:
      1.10.1
    • setHours

      public void setHours(Hours hours)
      Opening hours
      Since:
      1.10.1
    • getImpressum

      public String getImpressum()
      Legal information about the Page publishers.
      Returns:
      Legal information about the Page publishers
      Since:
      1.10.0
    • setImpressum

      public void setImpressum(String impressum)
      Legal information about the Page publishers.
      Since:
      1.10.0
    • getInfluences

      Influences on the band. Applicable to Bands
      Returns:
      Influences on the band
      Since:
      1.10.0
    • setInfluences

      public void setInfluences(String influences)
      Influences on the band. Applicable to Bands
      Since:
      1.10.0
    • getIsPermanentlyClosed

      Whether the business corresponding to this Page is permanently closed.
      Returns:
      Whether the business corresponding to this Page is permanently closed
      Since:
      1.10.0
    • setIsPermanentlyClosed

      public void setIsPermanentlyClosed(Boolean isPermanentlyClosed)
      Whether the business corresponding to this Page is permanently closed.
      Since:
      1.10.0
    • getOwnerBusiness

      owner business of this object
      Returns:
      owner business of this object
    • setOwnerBusiness

      public void setOwnerBusiness(Business ownerBusiness)
      owner business of this object
    • getOverallStarRating

      Overall page rating based on rating survey from users on a scale of 1-5. This value is normalized and is not guaranteed to be a strict average of user ratings. If there are 0 or a small number of ratings, this field will not be returned.
    • setOverallStarRating

      public void setOverallStarRating(Double overallStarRating)
      Overall page rating based on rating survey from users on a scale of 1-5. This value is normalized and is not guaranteed to be a strict average of user ratings. If there are 0 or a small number of ratings, this field will not be returned.
    • getRatingCount

      Number of ratings for the page (limited to ratings that are publicly accessible
    • setRatingCount

      public void setRatingCount(Integer ratingCount)
      Number of ratings for the page (limited to ratings that are publicly accessible
    • getRecipient

      public String getRecipient()
      Messenger page scope id associated with page and a user using account_linking_token
      Returns:
      Messenger page scope id associated with page and a user using account_linking_token
    • setRecipient

      public void setRecipient(String recipient)
      Messenger page scope id associated with page and a user using account_linking_token
    • getPersonalInfo

      Personal information. Applicable to Pages representing People
      Returns:
      Personal information
      Since:
      1.10.0
    • setPersonalInfo

      public void setPersonalInfo(String personalInfo)
      Personal information. Applicable to Pages representing People
      Since:
      1.10.0
    • getPaymentOptions

      Payment options accepted by the business. Applicable to Restaurants or Nightlife
      Returns:
      Payment options accepted by the business
      Since:
      1.10.0
    • setPaymentOptions

      public void setPaymentOptions(Page.PagePaymentOptions paymentOptions)
      Payment options accepted by the business. Applicable to Restaurants or Nightlife
      Since:
      1.10.0
    • getPersonalInterests

      Personal interests. Applicable to Pages representing People
      Returns:
      Personal interests
      Since:
      1.10.0
    • setPersonalInterests

      public void setPersonalInterests(String personalInterests)
      Personal interests. Applicable to Pages representing People
      Since:
      1.10.0
    • getPharmaSafetyInfo

      Pharmacy safety information. Applicable to Pharmaceutical companies
      Returns:
      Pharmacy safety information
      Since:
      1.10.0
    • setPharmaSafetyInfo

      public void setPharmaSafetyInfo(String pharmaSafetyInfo)
      Pharmacy safety information. Applicable to Pharmaceutical companies
      Since:
      1.10.0
    • getPlaceType

      public String getPlaceType()
      For places, the category of the place.
      Returns:
      For places, the category of the place
    • setPlaceType

      public void setPlaceType(String placeType)
      For places, the category of the place.
    • getPlotOutline

      The plot outline of the film. Applicable to Films
      Returns:
      The plot outline of the film
      Since:
      1.10.0
    • setPlotOutline

      public void setPlotOutline(String plotOutline)
      The plot outline of the film. Applicable to Films
      Since:
      1.10.0
    • getPriceRange

      Price range of the business. Applicable to Restaurants or Nightlife. Can be one of $ (0-10), $$ (10-30), $$$ (30-50), $$$$ (50+) or Unspecified
      Returns:
      Price range of the business
      Since:
      1.10.0
    • setPriceRange

      public void setPriceRange(String priceRange)
      Price range of the business. Applicable to Restaurants or Nightlife. Can be one of $ (0-10), $$ (10-30), $$$ (30-50), $$$$ (50+) or Unspecified
      Since:
      1.10.0
    • getProducedBy

      The productor of the film. Applicable to Films
      Returns:
      The productor of the film
      Since:
      1.10.0
    • setProducedBy

      public void setProducedBy(String producedBy)
      The productor of the film. Applicable to Films
      Since:
      1.10.0
    • getPromotionEligible

      Reason why a post isn't eligible for boosting. Only visible to Page Admins
      Returns:
      Reason why a post isn't eligible for boosting
      Since:
      1.10.0
    • setPromotionEligible

      public void setPromotionEligible(Boolean promotionEligible)
      Reason why a post isn't eligible for boosting. Only visible to Page Admins
      Since:
      1.10.0
    • getPromotionIneligibleReason

      Reason, for which boosted posts are not eligible. Only visible to a page admin
      Returns:
      Reason, for which boosted posts are not eligible
      Since:
      1.10.0
    • setPromotionIneligibleReason

      public void setPromotionIneligibleReason(String promotionIneligibleReason)
      Reason, for which boosted posts are not eligible. Only visible to a page admin
      Since:
      1.10.0
    • getPublicTransit

      Public transit to the business. Applicable to Restaurants or Nightlife
      Returns:
      Public transit to the business
      Since:
      1.10.0
    • setPublicTransit

      public void setPublicTransit(String publicTransit)
      Public transit to the business. Applicable to Restaurants or Nightlife
      Since:
      1.10.0
    • getRecordLabel

      Record label of the band. Applicable to Bands
      Returns:
      Record label of the band
      Since:
      1.10.0
    • setRecordLabel

      public void setRecordLabel(String recordLabel)
      Record label of the band. Applicable to Bands
      Since:
      1.10.0
    • getReleaseDate

      The film's release date. Applicable to Films
      Returns:
      The film's release date
      Since:
      1.10.0
    • setReleaseDate

      public void setReleaseDate(String releaseDate)
      The film's release date. Applicable to Films
      Since:
      1.10.0
    • getRestaurantServices

      Services the restaurant provides. Applicable to Restaurants
      Returns:
      Services the restaurant provides
      Since:
      1.10.0
    • setRestaurantServices

      public void setRestaurantServices(Page.PageRestaurantServices restaurantServices)
      Services the restaurant provides. Applicable to Restaurants
      Since:
      1.10.0
    • getRestaurantSpecialties

      The restaurant's specialties. Applicable to Restaurants
      Returns:
      The restaurant's specialties
      Since:
      1.10.0
    • setRestaurantSpecialties

      public void setRestaurantSpecialties(Page.PageRestaurantSpecialties restaurantSpecialties)
      The restaurant's specialties. Applicable to Restaurants
      Since:
      1.10.0
    • getStoreCode

      public String getStoreCode()
      Unique store code for this location Page
    • setStoreCode

      public void setStoreCode(String storeCode)
      Unique store code for this location Page
    • getStoreLocationDescriptor

      Location Page's store location descriptor
    • setStoreLocationDescriptor

      public void setStoreLocationDescriptor(String storeLocationDescriptor)
      Location Page's store location descriptor
    • getUserAccessExpireTime

    • setUserAccessExpireTime

      public void setUserAccessExpireTime(Date userAccessExpireTime)
    • getGenre

      public String getGenre()
      The genre of the film. Applicable to Films
      Returns:
      The genre of the film
      Since:
      1.10.0
    • setGenre

      public void setGenre(String genre)
      The genre of the film. Applicable to Films
      Since:
      1.10.0
    • getMpg

      public String getMpg()
      MPG of the vehicle. Applicable to Vehicles
      Returns:
      MPG of the vehicle
      Since:
      1.10.0
    • setMpg

      public void setMpg(String mpg)
      MPG of the vehicle. Applicable to Vehicles
      Since:
      1.10.0
    • getNetwork

      public String getNetwork()
      The TV network for the TV show. Applicable to TV Shows
      Returns:
      The TV network for the TV show
      Since:
      1.10.0
    • setNetwork

      public void setNetwork(String network)
      The TV network for the TV show. Applicable to TV Shows
      Since:
      1.10.0
    • getNewLikeCount

      The number of people who have liked the Page, since the last login. Only visible to a page admin
      Returns:
      The number of people who have liked the Page, since the last login
      Since:
      1.10.0
    • setNewLikeCount

      public void setNewLikeCount(Long newLikeCount)
      The number of people who have liked the Page, since the last login. Only visible to a page admin
      Since:
      1.10.0
    • getOfferEligible

      Offer eligibility status. Only visible to a page admin
      Returns:
      Offer eligibility status
      Since:
      1.10.0
    • setOfferEligible

      public void setOfferEligible(Boolean offerEligible)
      Offer eligibility status. Only visible to a page admin
      Since:
      1.10.0
    • getSchedule

      public String getSchedule()
      The air schedule of the TV show. Applicable to TV Shows
      Returns:
      The air schedule of the TV show
      Since:
      1.10.0
    • setSchedule

      public void setSchedule(String schedule)
      The air schedule of the TV show. Applicable to TV Shows
      Since:
      1.10.0
    • getScreenplayBy

      The screenwriter of the film. Applicable to Films
      Returns:
      The screenwriter of the film
      Since:
      1.10.0
    • setScreenplayBy

      public void setScreenplayBy(String screenplayBy)
      The screenwriter of the film. Applicable to Films
      Since:
      1.10.0
    • getSeason

      public String getSeason()
      The season information of the TV Show. Applicable to TV Shows
      Returns:
      The season information of the TV Show
      Since:
      1.10.0
    • setSeason

      public void setSeason(String season)
      The season information of the TV Show. Applicable to TV Shows
      Since:
      1.10.0
    • getSingleLineAddress

      The page address, if any, in a simple single line format.
      Returns:
      The page address, if any, in a simple single line format
    • setSingleLineAddress

      public void setSingleLineAddress(String singleLineAddress)
      The page address, if any, in a simple single line format.
    • getStarring

      public String getStarring()
      The cast of the film. Applicable to Films
      Returns:
      The cast of the film
      Since:
      1.10.0
    • setStarring

      public void setStarring(String starring)
      The cast of the film. Applicable to Films
      Since:
      1.10.0
    • getStartInfo

      Information about when the entity represented by the Page was started
      Returns:
      Information about when the entity represented by the Page was started
      Since:
      1.10.0
    • setStartInfo

      public void setStartInfo(Page.PageStartInfo startInfo)
      Information about when the entity represented by the Page was started
      Since:
      1.10.0
    • getStoreNumber

      Unique store number for this location Page.
      Returns:
      Unique store number for this location Page
      Since:
      1.10.0
    • setStoreNumber

      public void setStoreNumber(String storeNumber)
      Unique store number for this location Page.
      Since:
      1.10.0
    • getStudio

      public String getStudio()
      The studio for the film production. Applicable to Films
      Returns:
      The studio for the film production
      Since:
      1.10.0
    • setStudio

      public void setStudio(String studio)
      The studio for the film production. Applicable to Films
      Since:
      1.10.0
    • getTemporaryStatus

      Indicates how the business corresponding to this Page is operating differently than usual. Possible values:
      • differently_open
      • temporarily_closed
      • operating_as_usual
      • no_data
    • setTemporaryStatus

      public void setTemporaryStatus(String temporaryStatus)
      Indicates how the business corresponding to this Page is operating differently than usual. Possible values:
      • differently_open
      • temporarily_closed
      • operating_as_usual
      • no_data
    • getEngagement

      The social sentence and like count information for this Page. This is the same info used for the like button
      Returns:
      The social sentence and like count information for this Page
      Since:
      1.10.0
    • setEngagement

      public void setEngagement(Page.Engagement engagement)
      The social sentence and like count information for this Page. This is the same info used for the like button
      Since:
      1.10.0
    • getUnreadMessageCount

      Unread message count for the Page. Only visible to a page admin
      Returns:
      Unread message count for the Page
      Since:
      1.10.0
    • setUnreadMessageCount

      public void setUnreadMessageCount(Long unreadMessageCount)
      Unread message count for the Page. Only visible to a page admin
      Since:
      1.10.0
    • getUnreadNotifCount

      Number of unread notifications. Only visible to a page admin
      Returns:
      Number of unread notifications
      Since:
      1.10.0
    • setUnreadNotifCount

      public void setUnreadNotifCount(Long unreadNotifCount)
      Number of unread notifications. Only visible to a page admin
      Since:
      1.10.0
    • getUnseenMessageCount

      Unseen message count for the Page. Only visible to a page admin
      Returns:
      Unseen message count for the Page
      Since:
      1.10.0
    • setUnseenMessageCount

      public void setUnseenMessageCount(Long unseenMessageCount)
      Unseen message count for the Page. Only visible to a page admin
      Since:
      1.10.0
    • getMembers

      public String getMembers()
      Members of this org. Applicable to Pages representing Team Orgs
      Returns:
      Members of this org
      Since:
      1.10.0
    • setMembers

      public void setMembers(String members)
      Members of this org. Applicable to Pages representing Team Orgs
      Since:
      1.10.0
    • getWereHereCount

      The number of visits to this Page's location. If the Page setting Show map, check-ins and star ratings on the Page (under Page Settings > Page Info > Address) is disabled, then this value will also be disabled
      Returns:
      The number of visits to this Page's location
      Since:
      1.10.0
    • setWereHereCount

      public void setWereHereCount(Long wereHereCount)
      The number of visits to this Page's location. If the Page setting Show map, check-ins and star ratings on the Page (under Page Settings > Page Info > Address) is disabled, then this value will also be disabled
      Since:
      1.10.0
    • getFeaturedVideo

      Video Featured by the Page. Only visible to the Page admin
      Returns:
      Video Featured by the Page
      Since:
      1.10.0
    • setFeaturedVideo

      public void setFeaturedVideo(Video featuredVideo)
      Video Featured by the Page. Only visible to the Page admin
      Since:
      1.10.0
    • getVerificationStatus

      Showing whether this Page is verified and in what color e.g. blue verified, gray verified or not verified
      Returns:
      Showing whether this Page is verified and in what color
    • setVerificationStatus

      public void setVerificationStatus(String verificationStatus)
      Showing whether this Page is verified and in what color e.g. blue verified, gray verified or not verified
    • getVoipInfo

      Voip info
      Returns:
      Voip info
      Since:
      1.10.0
    • setVoipInfo

      public void setVoipInfo(Page.VoipInfo voipInfo)
      Voip info
      Since:
      1.10.0
    • getWrittenBy

      public String getWrittenBy()
      The writer of the TV show. Applicable to TV Shows
      Returns:
      The writer of the TV show
      Since:
      1.10.0
    • setWrittenBy

      public void setWrittenBy(String writtenBy)
      The writer of the TV show. Applicable to TV Shows
      Since:
      1.10.0
    • getWhatsappNumber

      whatsapp number
      Returns:
      whatsapp number
    • setWhatsappNumber

      public void setWhatsappNumber(String whatsappNumber)
      whatsapp number
    • getLink

      public String getLink()
      The page's link.
      Returns:
      The page's link.
    • setLink

      public void setLink(String link)
      The page's link.
    • getUsername

      public String getUsername()
      The page's username. The alias of the Page. For example, for www.facebook.com/platform the username is 'platform'
      Returns:
      The page's username.
    • setUsername

      public void setUsername(String username)
      The page's username. The alias of the Page. For example, for www.facebook.com/platform the username is 'platform'
    • getFounded

      public String getFounded()
      When the page was founded.
      Returns:
      When the page was founded.
    • setFounded

      public void setFounded(String founded)
      When the page was founded.
    • getCompanyOverview

      Overview of the page's company.
      Returns:
      Overview of the page's company.
    • setCompanyOverview

      public void setCompanyOverview(String companyOverview)
      Overview of the page's company.
    • getMission

      public String getMission()
      The company mission. Applicable to Companies
      Returns:
      The page's mission.
    • setMission

      public void setMission(String mission)
      The company mission. Applicable to Companies
    • getProducts

      public String getProducts()
      The page's products.
      Returns:
      The page's products.
    • setProducts

      public void setProducts(String products)
      The page's products.
    • getPageToken

      public String getPageToken()
    • setPageToken

      public void setPageToken(String pageToken)
    • getParentPage

      public Page getParentPage()
      Parent Page of this Page.

      If the Page is part of a Global Root Structure and you have permission to the Global Root, the Global Root Parent Page is returned. If you do not have Global Root permission, the Market Page for your current region is returned as the Parent Page.

      If your Page is not part of a Global Root Structure, the Parent Page is returned.

      Returns:
      parent page of this page
    • setParentPage

      public void setParentPage(Page parentPage)
      Parent Page of this Page.

      If the Page is part of a Global Root Structure and you have permission to the Global Root, the Global Root Parent Page is returned. If you do not have Global Root permission, the Market Page for your current region is returned as the Parent Page.

      If your Page is not part of a Global Root Structure, the Parent Page is returned.

    • getPrivacyInfoUrl

      Privacy url in page info section
      Returns:
      Privacy url in page info section
    • setPrivacyInfoUrl

      public void setPrivacyInfoUrl(String privacyInfoUrl)
      Privacy url in page info section
    • getLeadgenTosAccepted

      Indicates whether a user has accepted the TOS for running LeadGen Ads on the Page.
      Returns:
      Indicates whether a user has accepted the TOS for running LeadGen Ads on the Page
    • setLeadgenTosAccepted

      public void setLeadgenTosAccepted(Boolean leadgenTosAccepted)
      Indicates whether a user has accepted the TOS for running LeadGen Ads on the Page.
    • getLikesCount

      @GraphAPI(until="2.5") public Long getLikesCount()
      The number of likes the page has.

      Since Graph 2.6 you should use fanCount instead

      Returns:
      The number of likes the page has
      Since:
      1.6.5
    • setLikesCount

      public void setLikesCount(Long likesCount)
      The number of likes the page has.

      Since Graph 2.6 you should use fanCount instead

      Since:
      1.6.5
    • getLikes

      @GraphAPI(since="2.6") public Likes getLikes()
      The Pages that this Page Likes.
      Returns:
      The Pages that this Page Likes.
    • setLikes

      public void setLikes(Likes likes)
      The Pages that this Page Likes.
    • getFanCount

      @GraphAPI(since="2.6") public Long getFanCount()
      The number of likes the page has.
      Returns:
      The number of likes the page has
    • setFanCount

      public void setFanCount(Long fanCount)
      The number of likes the page has.
    • getIsAlwaysOpen

      Indicates whether this location is always open.
      Returns:
      Indicates whether this location is always open
    • setIsAlwaysOpen

      public void setIsAlwaysOpen(Boolean isAlwaysOpen)
      Indicates whether this location is always open.
    • getIsChain

      public Boolean getIsChain()
      Indicates whether location is part of a chain
      Returns:
      Indicates whether location is part of a chain
    • setIsChain

      public void setIsChain(Boolean isChain)
      Indicates whether location is part of a chain
    • getIsCommunityPage

      Is this a community page?
      Returns:
      Is this a community page?
    • setIsCommunityPage

      public void setIsCommunityPage(Boolean isCommunityPage)
      Is this a community page?
    • getIsEligibleForBrandedContent

      Indicates whether the page is eligible for the branded content tool
      Returns:
      is eligible for the branded content tool
    • setIsEligibleForBrandedContent

      public void setIsEligibleForBrandedContent(Boolean isEligibleForBrandedContent)
      Indicates whether the page is eligible for the branded content tool
    • getIsMessengerBotGetStartedEnabled

      Indicates whether the page is a Messenger Platform Bot with Get Started button enabled
      Returns:
      is a Messenger Platform Bot with Get Started button enabled
    • setIsMessengerBotGetStartedEnabled

      public void setIsMessengerBotGetStartedEnabled(Boolean isMessengerBotGetStartedEnabled)
      Indicates whether the page is a Messenger Platform Bot with Get Started button enabled
    • getIsMessengerPlatformBot

      Indicates whether the page is a Messenger Platform Bot
      Returns:
      Indicates whether the page is a Messenger Platform Bot
    • setIsMessengerPlatformBot

      public void setIsMessengerPlatformBot(Boolean isMessengerPlatformBot)
      Indicates whether the page is a Messenger Platform Bot
    • getIsOwned

      public Boolean getIsOwned()
      Indicates whether page is owned
      Returns:
      Indicates whether page is owned
    • setIsOwned

      public void setIsOwned(Boolean isOwned)
      Indicates whether page is owned
    • getDescription

      A description of this page.
      Returns:
      A description of this page.
    • setDescription

      public void setDescription(String description)
      A description of this page.
    • getDescriptionHtml

      The description of the Page in raw HTML.
      Returns:
      The description of the Page in raw HTML
      Since:
      1.10.0
    • setDescriptionHtml

      public void setDescriptionHtml(String descriptionHtml)
      The description of the Page in raw HTML.
      Since:
      1.10.0
    • getCheckins

      public Integer getCheckins()
      The total number of users who have checked in to the Page.
      Returns:
      The total number of users who have checked in to the Page.
    • setCheckins

      public void setCheckins(Integer checkins)
      The total number of users who have checked in to the Page.
    • getPhone

      public String getPhone()
      The phone number (not always normalized for country code) for the Page.
      Returns:
      The phone number (not always normalized for country code) for the Page.
    • setPhone

      public void setPhone(String phone)
      The phone number (not always normalized for country code) for the Page.
    • getParking

      Parking information. Applicable to Businesses and Places
      Returns:
      Parking information. Applicable to Businesses and Places
    • setParking

      public void setParking(Page.PageParking parking)
      Parking information. Applicable to Businesses and Places
    • getAccessToken

      An admin access_token for this page.

      The current user must be an administrator of this page; only returned if specifically requested via the fields URL parameter, e.g. facebookClient.fetchObject("123", Page.class, Parameter.with("fields","access_token"))

      Returns:
      The access token specific to this page.
      Since:
      1.6.5
    • setAccessToken

      public void setAccessToken(String accessToken)
      An admin access_token for this page.

      The current user must be an administrator of this page; only returned if specifically requested via the fields URL parameter, e.g. facebookClient.fetchObject("123", Page.class, Parameter.with("fields","access_token"))

      Since:
      1.6.5
    • getAbout

      public String getAbout()
      General information about this page.
      Returns:
      General information about this page.
      Since:
      1.6.10
    • setAbout

      public void setAbout(String about)
      General information about this page.
      Since:
      1.6.10
    • getTalkingAboutCount

      The number of people that are talking about this page (last seven days).
      Returns:
      The number of people that are talking about this page (last seven days).
      Since:
      1.6.10
    • setTalkingAboutCount

      public void setTalkingAboutCount(Long talkingAboutCount)
      The number of people that are talking about this page (last seven days).
      Since:
      1.6.10
    • getCanCheckin

      Whether this page has check in functionality enabled.
      Returns:
      Whether this page has check in functionality enabled
    • setCanCheckin

      public void setCanCheckin(Boolean canCheckin)
      Whether this page has check in functionality enabled.
    • getCanPost

      public Boolean getCanPost()
      Indicates whether the current session user can post on this page.
      Returns:
      Whether the current session user can post on this page.
      Since:
      1.6.10
    • setCanPost

      public void setCanPost(Boolean canPost)
      Indicates whether the current session user can post on this page.
      Since:
      1.6.10
    • getIsPublished

      Indicates whether the page is published and visible to non-admins.
      Returns:
      Whether the page is published and visible to non-admins.
      Since:
      1.6.10
    • setIsPublished

      public void setIsPublished(Boolean isPublished)
      Indicates whether the page is published and visible to non-admins.
      Since:
      1.6.10
    • getIsUnclaimed

      Indicates whether the Page is unclaimed.
      Returns:
      Indicates whether the Page is unclaimed.
      Since:
      1.7.0
    • setIsUnclaimed

      public void setIsUnclaimed(Boolean isUnclaimed)
      Indicates whether the Page is unclaimed.
      Since:
      1.7.0
    • getIsWebhooksSubscribed

      Indicates whether the application is subscribed for real time updates from this page
      Returns:
      Indicates whether the application is subscribed for real time updates from this page
    • setIsWebhooksSubscribed

      public void setIsWebhooksSubscribed(Boolean isWebhooksSubscribed)
      Indicates whether the application is subscribed for real time updates from this page
    • getLeadgenTosAcceptanceTime

      Indicates the time when the TOS for running LeadGen Ads on the page was accepted
    • setLeadgenTosAcceptanceTime

      public void setLeadgenTosAcceptanceTime(Date leadgenTosAcceptanceTime)
      Indicates the time when the TOS for running LeadGen Ads on the page was accepted
    • getLeadgenTosAcceptingUser

      Indicates the user who accepted the TOS for running LeadGen Ads on the page
    • setLeadgenTosAcceptingUser

      public void setLeadgenTosAcceptingUser(User leadgenTosAcceptingUser)
      Indicates the user who accepted the TOS for running LeadGen Ads on the page
    • getDirectedBy

      The director of the film. Applicable to Films.
      Returns:
      The director of the film
      Since:
      1.7.0
    • setDirectedBy

      public void setDirectedBy(String directedBy)
      The director of the film. Applicable to Films.
      Since:
      1.7.0
    • getDisplaySubtext

      Subtext about the Page being viewed.
      Returns:
      Subtext about the Page being viewed
    • setDisplaySubtext

      public void setDisplaySubtext(String displaySubtext)
      Subtext about the Page being viewed.
    • getDisplayedMessageResponseTime

      Page estimated message response time displayed to user
      Returns:
      Page estimated message response time displayed to user
    • setDisplayedMessageResponseTime

      public void setDisplayedMessageResponseTime(String displayedMessageResponseTime)
      Page estimated message response time displayed to user
    • getGeneralManager

      General manager of the business. Applicable to Restaurants or Nightlife.
      Returns:
      General manager of the business.
      Since:
      1.7.0
    • setGeneralManager

      public void setGeneralManager(String generalManager)
      General manager of the business. Applicable to Restaurants or Nightlife.
      Since:
      1.7.0
    • getGeneralInfo

      The general information for a page.
      Returns:
      The general information for a page.
      Since:
      1.6.12
    • setGeneralInfo

      public void setGeneralInfo(String generalInfo)
      The general information for a page.
      Since:
      1.6.12
    • getLocation

      The location of the place this page represents.
      Returns:
      The location of the place this page represents.
    • setLocation

      public void setLocation(Location location)
      The location of the place this page represents.
    • getMerchantId

      The instant workflow merchant id associated with the Page
      Returns:
      The instant workflow merchant id associated with the Page
    • setMerchantId

      public void setMerchantId(String merchantId)
      The instant workflow merchant id associated with the Page
    • getMerchantReviewStatus

      Review status of the Page against FB commerce policies, this status decides whether the Page can use component flow
    • setMerchantReviewStatus

      public void setMerchantReviewStatus(String merchantReviewStatus)
      Review status of the Page against FB commerce policies, this status decides whether the Page can use component flow
    • getCover

      public Page.Cover getCover()
      The cover photo.
      Returns:
      The cover photo.
      Since:
      1.6.10
    • setCover

      public void setCover(Page.Cover cover)
      The cover photo.
      Since:
      1.6.10
    • getWebsite

      public String getWebsite()
      The website URL
      Returns:
      the website url
      Since:
      1.6.15
    • setWebsite

      public void setWebsite(String website)
      The website URL
      Since:
      1.6.15
    • getNameWithLocationDescriptor

      The name of a Location Page that provides additional location information for that Page beside its name.
      Returns:
      the name of Location Page
      Since:
      1.7.0
    • setNameWithLocationDescriptor

      public void setNameWithLocationDescriptor(String nameWithLocationDescriptor)
      The name of a Location Page that provides additional location information for that Page beside its name.
      Since:
      1.7.0
    • getBookingAgent

      Booking agent of the band. Applicable to Bands.
      Returns:
      Booking agent of the band
      Since:
      1.7.0
    • setBookingAgent

      public void setBookingAgent(String bookingAgent)
      Booking agent of the band. Applicable to Bands.
      Since:
      1.7.0
    • getPressContact

      Press contact information of the band. Applicable to Bands.
      Returns:
      Press contact information of the band
      Since:
      1.7.0
    • setPressContact

      public void setPressContact(String pressContact)
      Press contact information of the band. Applicable to Bands.
      Since:
      1.7.0
    • getConnectedInstagramAccount

      Instagram account connected to page via page settings
    • setConnectedInstagramAccount

      public void setConnectedInstagramAccount(IgUser connectedInstagramAccount)
      Instagram account connected to page via page settings
    • getInstagramBusinessAccount

      Instagram account linked to page during Instagram business conversion flow
    • setInstagramBusinessAccount

      public void setInstagramBusinessAccount(IgUser instagramBusinessAccount)
      Instagram account linked to page during Instagram business conversion flow
    • getInstantArticlesReviewStatus

      Indicates the current Instant Articles review status for this page
      Returns:
      Indicates the current Instant Articles review status for this page
    • setInstantArticlesReviewStatus

      public void setInstantArticlesReviewStatus(String instantArticlesReviewStatus)
      Indicates the current Instant Articles review status for this page
    • getLastUsedTime

      last used time of this object by the current viewer
      Returns:
      last used time of this object by the current viewer
    • setLastUsedTime

      public void setLastUsedTime(Date lastUsedTime)
      last used time of this object by the current viewer
    • getInsights

      This Page's Insights data
    • setInsights

      public void setInsights(Connection<Insight> insights)
      This Page's Insights data
    • getGroups

      groups
    • setGroups

      public void setGroups(Connection<Group> groups)
      groups
    • getHasTransitionedToNewPageExperience

      Indicates whether a page has transitioned to new page experience or not
    • setHasTransitionedToNewPageExperience

      public void setHasTransitionedToNewPageExperience(Boolean hasTransitionedToNewPageExperience)
      Indicates whether a page has transitioned to new page experience or not