org.springframework.social.facebook.api
Class Page

java.lang.Object
  extended by org.springframework.social.facebook.api.FacebookObject
      extended by org.springframework.social.facebook.api.Page

public class Page
extends FacebookObject

Model class representing a Facebook page. A Facebook page could represent any number of things, including businesses, government agencies, people, organizations, etc. A page may even represent a place that a user may check into using Facebook Places, if the page has location data. The data available for a page will vary depending on the category it belongs to and what data the page administrator has entered.


Constructor Summary
Page(String id, String name, String link, String category)
           
 
Method Summary
 boolean canPost()
          Indicates whether or not the authenticated user can post on this page.
 String getAbout()
           
 String getAffiliation()
           
 String getCategory()
           
 int getCheckins()
           
 String getCompanyOverview()
           
 CoverPhoto getCover()
          The page's cover photo.
 String getDescription()
           
 Map<String,String> getHours()
           
 String getId()
           
 int getLikes()
           
 String getLink()
           
 Location getLocation()
           
 String getName()
           
 String getPhone()
           
 String getPicture()
          Deprecated. This method will be replaced in Spring 1.1.0 with a new version that returns an object with more details about the picture.
 int getTalkingAboutCount()
           
 String getWebsite()
           
 boolean hasAddedApp()
           
 boolean isCommunityPage()
           
 boolean isPublished()
           
 
Methods inherited from class org.springframework.social.facebook.api.FacebookObject
add, getExtraData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Page

public Page(String id,
            String name,
            String link,
            String category)
Method Detail

getId

public String getId()
Returns:
The page's ID.

getName

public String getName()
Returns:
The page's name.

getLink

public String getLink()
Returns:
Link to the page on Facebook.

getCategory

public String getCategory()
Returns:
The page's category.

getDescription

public String getDescription()
Returns:
A description of this page.

getAbout

public String getAbout()
Returns:
Text telling what this page is about.

getLocation

public Location getLocation()
Returns:
The page's street address and longitude/latitude coordinates (if available).

getWebsite

public String getWebsite()
Returns:
Link to the external website for the page.

getPicture

@Deprecated
public String getPicture()
Deprecated. This method will be replaced in Spring 1.1.0 with a new version that returns an object with more details about the picture.

The page's picture.


getCover

public CoverPhoto getCover()
The page's cover photo.


getPhone

public String getPhone()
Returns:
The phone number for the page.

getAffiliation

public String getAffiliation()
Returns:
The name of an organization that this page is affiliated with.

getCompanyOverview

public String getCompanyOverview()
Returns:
Text giving a brief description of the company this page serves.

getLikes

public int getLikes()
Returns:
The number of users who like this page. For Global Brand pages, this count is fall all pages across the brand.

getTalkingAboutCount

public int getTalkingAboutCount()

getCheckins

public int getCheckins()
Returns:
The total number of users that have checked in to the page.

canPost

public boolean canPost()
Indicates whether or not the authenticated user can post on this page.

Returns:
true if the user can post to the page; false otherwise

isPublished

public boolean isPublished()
Returns:
true if the page has been published; false otherwise.

isCommunityPage

public boolean isCommunityPage()
Returns:
true if the page is a community page; false otherwise.

hasAddedApp

public boolean hasAddedApp()
Returns:
true if the page has added the app making the query in a Page tab; false otherwise.

getHours

public Map<String,String> getHours()