Spring Social Facebook

org.springframework.social.facebook.api
Class Page

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

public class Page
extends java.lang.Object

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.

Author:
Craig Walls

Constructor Summary
Page(java.lang.String id, java.lang.String name, java.lang.String link, java.lang.String category)
           
 
Method Summary
 boolean canPost()
          Indicates whether or not the authenticated user can post on this page.
 java.lang.String getAbout()
           
 java.lang.String getAffiliation()
           
 java.lang.String getCategory()
           
 int getCheckins()
           
 java.lang.String getCompanyOverview()
           
 CoverPhoto getCover()
           
 java.lang.String getDescription()
           
 int getFanCount()
          Deprecated. The fan_count property is no longer returned from Facebook's Graph API and so this will always be zero. This property will be removed in Spring Social Facebook 1.1.0.
 java.util.Map<java.lang.String,java.lang.String> getHours()
           
 java.lang.String getId()
           
 int getLikes()
           
 java.lang.String getLink()
           
 Location getLocation()
           
 java.lang.String getName()
           
 java.lang.String getPhone()
           
 java.lang.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()
           
 java.lang.String getWebsite()
           
 boolean hasAddedApp()
           
 boolean isCommunityPage()
           
 boolean isPublished()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Page

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

getId

public java.lang.String getId()

getName

public java.lang.String getName()

getLink

public java.lang.String getLink()

getCategory

public java.lang.String getCategory()

getDescription

public java.lang.String getDescription()

getAbout

public java.lang.String getAbout()

getLocation

public Location getLocation()

getWebsite

public java.lang.String getWebsite()

getPicture

@Deprecated
public java.lang.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()

getPhone

public java.lang.String getPhone()

getAffiliation

public java.lang.String getAffiliation()

getCompanyOverview

public java.lang.String getCompanyOverview()

getFanCount

@Deprecated
public int getFanCount()
Deprecated. The fan_count property is no longer returned from Facebook's Graph API and so this will always be zero. This property will be removed in Spring Social Facebook 1.1.0.


getLikes

public int getLikes()

getTalkingAboutCount

public int getTalkingAboutCount()

getCheckins

public int getCheckins()

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 java.util.Map<java.lang.String,java.lang.String> getHours()

Spring Social Facebook