facebook4j.api
Interface PageMethods

All Known Subinterfaces:
Facebook

public interface PageMethods

Since:
Facebook4J 2.0.0
Author:
Ryuji Yamashita - roundrop at gmail.com

Method Summary
 Map<String,Boolean> block(List<String> userIds)
          Blocks users from posting content to the current page.
 Map<String,Boolean> block(String pageId, List<String> userIds)
          Blocks users from posting content to the current page.
 String createMilestone(MilestoneUpdate milestoneUpdate)
          Creates the milestone for the current page.
 String createMilestone(String pageId, MilestoneUpdate milestoneUpdate)
          Creates the milestone for the page.
 String createOffer(OfferUpdate offerUpdate)
          Creates an offer for the current page.
 String createOffer(String pageId, OfferUpdate offerUpdate)
          Creates an offers for the page.
 boolean deleteMilestone(String milestoneId)
          Deletes the milestone.
 boolean deleteOffer(String offerId)
          Deletes the createOffer.
 boolean deleteTab(String tabId)
          Deletes an installed profile_tab where is_permanent is not true for the current page.
 boolean deleteTab(String pageId, String tabId)
          Deletes an installed profile_tab where is_permanent is not true for the page.
 boolean displayPagePost(String postId, boolean isHidden)
          Hides/Shows the page's post that is published by a non-admin user.
 ResponseList<User> getBlocked()
          Returns a list of users blocked from the current Page.
 ResponseList<User> getBlocked(Reading reading)
          Returns a list of users blocked from the current Page.
 ResponseList<User> getBlocked(String pageId)
          Returns a list of users blocked from the Page.
 ResponseList<User> getBlocked(String pageId, Reading reading)
          Returns a list of users blocked from the Page.
 ResponseList<Page> getGlobalBrandChildren(String pageId)
          Returns all children pages of a specific page.
 ResponseList<Page> getGlobalBrandChildren(String pageId, Reading reading)
          Returns all children pages of a specific page.
 ResponseList<Tab> getInstalledTabs(List<String> appIds)
          Returns the current Page's profile tabs if a specific app is installed.
 ResponseList<Tab> getInstalledTabs(List<String> appIds, Reading reading)
          Returns the current Page's profile tabs if a specific app is installed.
 ResponseList<Tab> getInstalledTabs(String pageId, List<String> appIds)
          Returns the Page's profile tabs if a specific app is installed.
 ResponseList<Tab> getInstalledTabs(String pageId, List<String> appIds, Reading reading)
          Returns the Page's profile tabs if a specific app is installed.
 Page getLikedPage(String pageId)
          Returns a specific page that the current user has liked.
 Page getLikedPage(String pageId, Reading reading)
          Returns a specific page that the current user has liked.
 Page getLikedPage(String userId, String pageId)
          Returns a specific page that a user has liked.
 Page getLikedPage(String userId, String pageId, Reading reading)
          Returns a specific page that a user has liked.
 ResponseList<Milestone> getMilestones()
          Returns a list of the Page's milestones.
 ResponseList<Milestone> getMilestones(Reading reading)
          /** Returns a list of the Page's milestones.
 ResponseList<Milestone> getMilestones(String pageId)
          Returns a list of the Page's milestones.
 ResponseList<Milestone> getMilestones(String pageId, Reading reading)
          Returns a list of the Page's milestones.
 Offer getOffer(String offerId)
          Returns the offer.
 ResponseList<Offer> getOffers()
          Returns a list of offers of the current page.
 ResponseList<Offer> getOffers(Reading reading)
          Returns a list of offers of the current page.
 ResponseList<Offer> getOffers(String pageId)
          Returns a list of offers of the current page.
 ResponseList<Offer> getOffers(String pageId, Reading reading)
          Returns a list of offers of the current page.
 Page getPage()
          Returns the current page.
 Page getPage(Reading reading)
          Returns the current page.
 Page getPage(String pageId)
          Returns the page.
 Page getPage(String pageId, Reading reading)
          Returns the page.
 ResponseList<Admin> getPageAdmins()
          Returns a list of the Page's Admins.
 ResponseList<Admin> getPageAdmins(Reading reading)
          Returns a list of the Page's Admins.
 ResponseList<Admin> getPageAdmins(String pageId)
          Returns a list of the Page's Admins.
 ResponseList<Admin> getPageAdmins(String pageId, Reading reading)
          Returns a list of the Page's Admins.
 ResponseList<Insight> getPageInsights(String pageId)
          Returns the page's insights data.
 ResponseList<Insight> getPageInsights(String pageId, Reading reading)
          Returns the page's insights data.
 ResponseList<Like> getPageLikes(String pageId)
          Returns likes made by the page.
 ResponseList<Like> getPageLikes(String pageId, Reading reading)
          Returns likes made by the page.
 URL getPagePictureURL()
          Returns the url of a page's profile picture.
 URL getPagePictureURL(PictureSize size)
          Returns the url of a page's profile picture.
 URL getPagePictureURL(String pageId)
          Returns the url of a page's profile picture.
 URL getPagePictureURL(String pageId, PictureSize size)
          Returns the url of a page's profile picture.
 ResponseList<PageSetting> getPageSettings()
          Returns the settings for the current page.
 ResponseList<PageSetting> getPageSettings(String pageId)
          Returns the settings for the page.
 ResponseList<Tagged> getPageTagged(String pageId)
          Returns the photos, videos, and posts in which the Page has been tagged.
 ResponseList<Tagged> getPageTagged(String pageId, Reading reading)
          Returns the photos, videos, and posts in which the Page has been tagged.
 ResponseList<Post> getPromotablePosts()
          Returns the current Page's own posts, including unpublished and scheduled posts.
 ResponseList<Post> getPromotablePosts(Reading reading)
          Returns the current Page's own posts, including unpublished and scheduled posts.
 ResponseList<Post> getPromotablePosts(String pageId)
          Returns the Page's own posts, including unpublished and scheduled posts.
 ResponseList<Post> getPromotablePosts(String pageId, Reading reading)
          Returns the Page's own posts, including unpublished and scheduled posts.
 ResponseList<Tab> getTabs()
          Returns the current Page's profile tabs.
 ResponseList<Tab> getTabs(Reading reading)
          Returns the current Page's profile tabs.
 ResponseList<Tab> getTabs(String pageId)
          Returns the Page's profile tabs.
 ResponseList<Tab> getTabs(String pageId, Reading reading)
          Returns the Page's profile tabs.
 boolean installTab(String appId)
          Installs a profile_tab at the end of the current list of installed tabs for the current page.
 boolean installTab(String pageId, String appId)
          Installs a profile_tab at the end of the current list of installed tabs for the current page.
 String postBackdatingFeed(BackdatingPostUpdate backdatingPostUpdate)
          Creates the post that's back-dated to the current page's wall.
 String postBackdatingFeed(String pageId, BackdatingPostUpdate backdatingPostUpdate)
          Creates the post that's back-dated to a page's wall.
 String postPagePhoto(PagePhotoUpdate pagePhotoUpdate)
          Posts a photo to the current page's wall.
 String postPagePhoto(String pageId, PagePhotoUpdate pagePhotoUpdate)
          Posts a photo to a page's wall.
 boolean unblock(String userId)
          Unblocks the blocked user for the current page.
 boolean unblock(String pageId, String userId)
          Unblocks the blocked user for the page.
 boolean updatePageBasicAttributes(PageUpdate pageUpdate)
          Updates a Page's basic attributes.
 boolean updatePageBasicAttributes(String pageId, PageUpdate pageUpdate)
          Updates a Page's basic attributes.
 boolean updatePageCoverPhoto(PageCoverUpdate pageCoverUpdate)
          Updates the profile photo for the current page.
 boolean updatePageCoverPhoto(String pageId, PageCoverUpdate pageCoverUpdate)
          Updates the profile photo for the current page.
 boolean updatePageProfilePhoto(Media source)
          Updates the profile photo for the current Page.
 boolean updatePageProfilePhoto(String pageId, Media source)
          Updates the profile photo for a Page.
 boolean updatePageProfilePhoto(String pageId, URL picture)
          Updates the profile photo for a Page.
 boolean updatePageProfilePhoto(URL picture)
          Updates the profile photo for the current Page.
 boolean updatePageSetting(PageSettingUpdate pageSettingUpdate)
          Updates the setting for the current page.
 boolean updatePageSetting(String pageId, PageSettingUpdate pageSettingUpdate)
          Updates the setting for the page.
 boolean updateTab(String pageId, String tabId, TabUpdate tabUpdate)
          Updates an installed profile_tab for the page.
 boolean updateTab(String tabId, TabUpdate tabUpdate)
          Updates an installed profile_tab for the current page.
 

Method Detail

getPage

Page getPage()
             throws FacebookException
Returns the current page.

Returns:
page
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPage

Page getPage(Reading reading)
             throws FacebookException
Returns the current page.

Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
page
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPage

Page getPage(String pageId)
             throws FacebookException
Returns the page.

Parameters:
pageId - the ID of the page
Returns:
page
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPage

Page getPage(String pageId,
             Reading reading)
             throws FacebookException
Returns the page.

Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
page
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPagePictureURL

URL getPagePictureURL()
                      throws FacebookException
Returns the url of a page's profile picture. This method requires page access_token.

Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers - Connections - picture

getPagePictureURL

URL getPagePictureURL(PictureSize size)
                      throws FacebookException
Returns the url of a page's profile picture. This method requires page access_token.

Parameters:
size - picture size
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers - Connections - picture

getPagePictureURL

URL getPagePictureURL(String pageId)
                      throws FacebookException
Returns the url of a page's profile picture.

Parameters:
pageId - the ID of a page
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers - Connections - picture

getPagePictureURL

URL getPagePictureURL(String pageId,
                      PictureSize size)
                      throws FacebookException
Returns the url of a page's profile picture.

Parameters:
pageId - the ID of a page
size - picture size
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers - Connections - picture

getPromotablePosts

ResponseList<Post> getPromotablePosts()
                                      throws FacebookException
Returns the current Page's own posts, including unpublished and scheduled posts. This method requires page access_token.

Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPromotablePosts

ResponseList<Post> getPromotablePosts(Reading reading)
                                      throws FacebookException
Returns the current Page's own posts, including unpublished and scheduled posts. This method requires page access_token.

Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPromotablePosts

ResponseList<Post> getPromotablePosts(String pageId)
                                      throws FacebookException
Returns the Page's own posts, including unpublished and scheduled posts.

Parameters:
pageId - the ID of the page
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPromotablePosts

ResponseList<Post> getPromotablePosts(String pageId,
                                      Reading reading)
                                      throws FacebookException
Returns the Page's own posts, including unpublished and scheduled posts.

Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

updatePageBasicAttributes

boolean updatePageBasicAttributes(PageUpdate pageUpdate)
                                  throws FacebookException
Updates a Page's basic attributes.

Parameters:
pageUpdate - the page to be updated
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#attributes - Facebook Developers

updatePageBasicAttributes

boolean updatePageBasicAttributes(String pageId,
                                  PageUpdate pageUpdate)
                                  throws FacebookException
Updates a Page's basic attributes.

Parameters:
pageId - the ID of the page
pageUpdate - the page to be updated
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#attributes - Facebook Developers

updatePageProfilePhoto

boolean updatePageProfilePhoto(URL picture)
                               throws FacebookException
Updates the profile photo for the current Page.

Parameters:
picture - A URL to the photo
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#attributes - Facebook Developers - Setting a Page Profile Photo

updatePageProfilePhoto

boolean updatePageProfilePhoto(String pageId,
                               URL picture)
                               throws FacebookException
Updates the profile photo for a Page.

Parameters:
pageId - the ID of the page
picture - A URL to the photo
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#attributes - Facebook Developers - Setting a Page Profile Photo

updatePageProfilePhoto

boolean updatePageProfilePhoto(Media source)
                               throws FacebookException
Updates the profile photo for the current Page.

Parameters:
source - Photo content
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#attributes - Facebook Developers - Setting a Page Profile Photo

updatePageProfilePhoto

boolean updatePageProfilePhoto(String pageId,
                               Media source)
                               throws FacebookException
Updates the profile photo for a Page.

Parameters:
pageId - the ID of the page
source - Photo content
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#attributes - Facebook Developers - Setting a Page Profile Photo

updatePageCoverPhoto

boolean updatePageCoverPhoto(PageCoverUpdate pageCoverUpdate)
                             throws FacebookException
Updates the profile photo for the current page.

Parameters:
pageCoverUpdate - the cover photo for the page to be updated
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#attributes - Facebook Developers - Setting a Cover Photo

updatePageCoverPhoto

boolean updatePageCoverPhoto(String pageId,
                             PageCoverUpdate pageCoverUpdate)
                             throws FacebookException
Updates the profile photo for the current page.

Parameters:
pageId - the ID of the page
pageCoverUpdate - the cover photo for the page to be updated
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#attributes - Facebook Developers - Setting a Cover Photo

displayPagePost

boolean displayPagePost(String postId,
                        boolean isHidden)
                        throws FacebookException
Hides/Shows the page's post that is published by a non-admin user.

Parameters:
postId - the ID of the post in the page
isHidden - whether a post is hidden
Returns:
true if hide/show is successful
Throws:
FacebookException
See Also:
Page#attributes - Facebook Developers - Hiding a Page Post

getPageSettings

ResponseList<PageSetting> getPageSettings()
                                          throws FacebookException
Returns the settings for the current page.

Returns:
settings
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPageSettings

ResponseList<PageSetting> getPageSettings(String pageId)
                                          throws FacebookException
Returns the settings for the page.

Parameters:
pageId - the ID of the page
Returns:
settings
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

updatePageSetting

boolean updatePageSetting(PageSettingUpdate pageSettingUpdate)
                          throws FacebookException
Updates the setting for the current page.

Parameters:
pageSettingUpdate - setting
Returns:
true if the setting was successfully set or changed
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#settings - Facebook Developers

updatePageSetting

boolean updatePageSetting(String pageId,
                          PageSettingUpdate pageSettingUpdate)
                          throws FacebookException
Updates the setting for the page.

Parameters:
pageId - the ID of the page
pageSettingUpdate - setting
Returns:
true if the setting was successfully set or changed
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#settings - Facebook Developers

postBackdatingFeed

String postBackdatingFeed(BackdatingPostUpdate backdatingPostUpdate)
                          throws FacebookException
Creates the post that's back-dated to the current page's wall.

Parameters:
backdatingPostUpdate - the post to be created
Returns:
The new post ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#backdating - Facebook Developers

postBackdatingFeed

String postBackdatingFeed(String pageId,
                          BackdatingPostUpdate backdatingPostUpdate)
                          throws FacebookException
Creates the post that's back-dated to a page's wall.

Parameters:
pageId - the ID of a page
backdatingPostUpdate - the post to be created
Returns:
The new post ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#backdating - Facebook Developers

postPagePhoto

String postPagePhoto(PagePhotoUpdate pagePhotoUpdate)
                     throws FacebookException
Posts a photo to the current page's wall.

Parameters:
pagePhotoUpdate - photo content, targeting and more
Returns:
The new photo ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#photos - Facebook Developers

postPagePhoto

String postPagePhoto(String pageId,
                     PagePhotoUpdate pagePhotoUpdate)
                     throws FacebookException
Posts a photo to a page's wall.

Parameters:
pageId - the ID of a page
pagePhotoUpdate - photo content, targeting and more
Returns:
The new photo ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#photos - Facebook Developers

getGlobalBrandChildren

ResponseList<Page> getGlobalBrandChildren(String pageId)
                                          throws FacebookException
Returns all children pages of a specific page.

Parameters:
pageId - the ID of the page
Returns:
pages
Throws:
FacebookException

getGlobalBrandChildren

ResponseList<Page> getGlobalBrandChildren(String pageId,
                                          Reading reading)
                                          throws FacebookException
Returns all children pages of a specific page.

Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
pages
Throws:
FacebookException

getPageInsights

ResponseList<Insight> getPageInsights(String pageId)
                                      throws FacebookException
Returns the page's insights data.

Parameters:
pageId - the ID of the page
Returns:
insights
Throws:
FacebookException

getPageInsights

ResponseList<Insight> getPageInsights(String pageId,
                                      Reading reading)
                                      throws FacebookException
Returns the page's insights data.

Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
pages
Throws:
FacebookException

getPageTagged

ResponseList<Tagged> getPageTagged(String pageId)
                                   throws FacebookException
Returns the photos, videos, and posts in which the Page has been tagged.

Parameters:
pageId - the ID of the page
Returns:
pages
Throws:
FacebookException

getPageTagged

ResponseList<Tagged> getPageTagged(String pageId,
                                   Reading reading)
                                   throws FacebookException
Returns the photos, videos, and posts in which the Page has been tagged.

Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
pages
Throws:
FacebookException

getMilestones

ResponseList<Milestone> getMilestones()
                                      throws FacebookException
Returns a list of the Page's milestones. Note that this method requires 'page' access_token.

Returns:
milestones
Throws:
FacebookException - when Facebook service or network is unavailable

getMilestones

ResponseList<Milestone> getMilestones(Reading reading)
                                      throws FacebookException
/** Returns a list of the Page's milestones. Note that this method requires 'page' access_token.

Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
milestones
Throws:
FacebookException - when Facebook service or network is unavailable

getMilestones

ResponseList<Milestone> getMilestones(String pageId)
                                      throws FacebookException
Returns a list of the Page's milestones.

Parameters:
pageId - the ID of the page
Returns:
milestones
Throws:
FacebookException - when Facebook service or network is unavailable

getMilestones

ResponseList<Milestone> getMilestones(String pageId,
                                      Reading reading)
                                      throws FacebookException
Returns a list of the Page's milestones.

Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
milestones
Throws:
FacebookException - when Facebook service or network is unavailable

createMilestone

String createMilestone(MilestoneUpdate milestoneUpdate)
                       throws FacebookException
Creates the milestone for the current page. Note that this method requires 'page' access_token.

Parameters:
milestoneUpdate - a milestone to be created
Returns:
The new milestone ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#milestones - Facebook Developers

createMilestone

String createMilestone(String pageId,
                       MilestoneUpdate milestoneUpdate)
                       throws FacebookException
Creates the milestone for the page. Note that this method requires 'page' access_token.

Parameters:
pageId - the ID of the page
milestoneUpdate - a milestone to be created
Returns:
The new milestone ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#milestones - Facebook Developers

deleteMilestone

boolean deleteMilestone(String milestoneId)
                        throws FacebookException
Deletes the milestone. Note that this method requires 'page' access_token.

Parameters:
milestoneId - the ID of a milestone
Returns:
true if delete is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#milestones - Facebook Developers

getPageAdmins

ResponseList<Admin> getPageAdmins()
                                  throws FacebookException
Returns a list of the Page's Admins. Note that this method requires 'page' access_token.

Returns:
admins
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPageAdmins

ResponseList<Admin> getPageAdmins(Reading reading)
                                  throws FacebookException
Returns a list of the Page's Admins. Note that this method requires 'page' access_token.

Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
admins
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPageAdmins

ResponseList<Admin> getPageAdmins(String pageId)
                                  throws FacebookException
Returns a list of the Page's Admins. Note that this method requires 'page' access_token.

Parameters:
pageId - the ID of the page
Returns:
admins
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPageAdmins

ResponseList<Admin> getPageAdmins(String pageId,
                                  Reading reading)
                                  throws FacebookException
Returns a list of the Page's Admins. Note that this method requires 'page' access_token.

Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
admins
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getTabs

ResponseList<Tab> getTabs()
                          throws FacebookException
Returns the current Page's profile tabs. Note that this method requires 'page' access_token.

Returns:
tabs
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#tabs - Facebook Developers

getTabs

ResponseList<Tab> getTabs(Reading reading)
                          throws FacebookException
Returns the current Page's profile tabs. Note that this method requires 'page' access_token.

Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
tabs
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#tabs - Facebook Developers

getTabs

ResponseList<Tab> getTabs(String pageId)
                          throws FacebookException
Returns the Page's profile tabs. Note that this method requires 'page' access_token.

Parameters:
pageId - the ID of the page
Returns:
tabs
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#tabs - Facebook Developers

getTabs

ResponseList<Tab> getTabs(String pageId,
                          Reading reading)
                          throws FacebookException
Returns the Page's profile tabs. Note that this method requires 'page' access_token.

Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
tabs
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#tabs - Facebook Developers

getInstalledTabs

ResponseList<Tab> getInstalledTabs(List<String> appIds)
                                   throws FacebookException
Returns the current Page's profile tabs if a specific app is installed.

Parameters:
appIds - the IDs of app
Returns:
tabs
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#tabs - Facebook Developers

getInstalledTabs

ResponseList<Tab> getInstalledTabs(List<String> appIds,
                                   Reading reading)
                                   throws FacebookException
Returns the current Page's profile tabs if a specific app is installed.

Parameters:
appIds - the IDs of app
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
tabs
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#tabs - Facebook Developers

getInstalledTabs

ResponseList<Tab> getInstalledTabs(String pageId,
                                   List<String> appIds)
                                   throws FacebookException
Returns the Page's profile tabs if a specific app is installed.

Parameters:
pageId - the ID of the page
appIds - the IDs of app
Returns:
tabs
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#tabs - Facebook Developers

getInstalledTabs

ResponseList<Tab> getInstalledTabs(String pageId,
                                   List<String> appIds,
                                   Reading reading)
                                   throws FacebookException
Returns the Page's profile tabs if a specific app is installed.

Parameters:
pageId - the ID of the page
appIds - the IDs of app
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
tabs
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#tabs - Facebook Developers

installTab

boolean installTab(String appId)
                   throws FacebookException
Installs a profile_tab at the end of the current list of installed tabs for the current page.

Parameters:
appId - the ID of the application for which to install the tab
Returns:
true if install is successful
Throws:
FacebookException
See Also:
Page#tabs - Facebook Developers

installTab

boolean installTab(String pageId,
                   String appId)
                   throws FacebookException
Installs a profile_tab at the end of the current list of installed tabs for the current page.

Parameters:
pageId - the ID of the page
appId - the ID of the application for which to install the tab
Returns:
true if install is successful
Throws:
FacebookException
See Also:
Page#tabs - Facebook Developers

updateTab

boolean updateTab(String tabId,
                  TabUpdate tabUpdate)
                  throws FacebookException
Updates an installed profile_tab for the current page.

Parameters:
tabId - the ID of the tab
tabUpdate - tab to be updated
Returns:
true if the update is successful
Throws:
FacebookException
See Also:
Page#tabs - Facebook Developers

updateTab

boolean updateTab(String pageId,
                  String tabId,
                  TabUpdate tabUpdate)
                  throws FacebookException
Updates an installed profile_tab for the page.

Parameters:
pageId - the ID of the page
tabId - the ID of the tab
tabUpdate - tab to be updated
Returns:
true if the update is successful
Throws:
FacebookException
See Also:
Page#tabs - Facebook Developers

deleteTab

boolean deleteTab(String tabId)
                  throws FacebookException
Deletes an installed profile_tab where is_permanent is not true for the current page.

Parameters:
tabId - the ID of the tab
Returns:
true if the delete is successful
Throws:
FacebookException

deleteTab

boolean deleteTab(String pageId,
                  String tabId)
                  throws FacebookException
Deletes an installed profile_tab where is_permanent is not true for the page.

Parameters:
pageId - the ID of the page
tabId - the ID of the tab
Returns:
true if the delete is successful
Throws:
FacebookException

getBlocked

ResponseList<User> getBlocked()
                              throws FacebookException
Returns a list of users blocked from the current Page.

Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#blocked - Facebook Developers

getBlocked

ResponseList<User> getBlocked(Reading reading)
                              throws FacebookException
Returns a list of users blocked from the current Page.

Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#blocked - Facebook Developers

getBlocked

ResponseList<User> getBlocked(String pageId)
                              throws FacebookException
Returns a list of users blocked from the Page.

Parameters:
pageId - the ID of the page
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#blocked - Facebook Developers

getBlocked

ResponseList<User> getBlocked(String pageId,
                              Reading reading)
                              throws FacebookException
Returns a list of users blocked from the Page.

Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#blocked - Facebook Developers

block

Map<String,Boolean> block(List<String> userIds)
                          throws FacebookException
Blocks users from posting content to the current page.

Parameters:
userIds - user IDs you wish to block
Returns:
Map where the keys are the user IDs and the values a boolean of whether or not the block was successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#blocked - Facebook Developers

block

Map<String,Boolean> block(String pageId,
                          List<String> userIds)
                          throws FacebookException
Blocks users from posting content to the current page.

Parameters:
pageId - the ID of the page
userIds - user IDs you wish to block
Returns:
Map where the keys are the user IDs and the values a boolean of whether or not the block was successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#blocked - Facebook Developers

unblock

boolean unblock(String userId)
                throws FacebookException
Unblocks the blocked user for the current page.

Parameters:
userId - the IDs of the user
Returns:
true if unblock is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#blocked - Facebook Developers

unblock

boolean unblock(String pageId,
                String userId)
                throws FacebookException
Unblocks the blocked user for the page.

Parameters:
pageId - the ID of the page
userId - the IDs of the user
Returns:
true if unblock is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#blocked - Facebook Developers

getOffers

ResponseList<Offer> getOffers()
                              throws FacebookException
Returns a list of offers of the current page.

Returns:
offers
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#offers - Facebook Developers

getOffers

ResponseList<Offer> getOffers(Reading reading)
                              throws FacebookException
Returns a list of offers of the current page.

Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
offers
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#offers - Facebook Developers

getOffers

ResponseList<Offer> getOffers(String pageId)
                              throws FacebookException
Returns a list of offers of the current page.

Parameters:
pageId - the ID of the page
Returns:
offers
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#offers - Facebook Developers

getOffers

ResponseList<Offer> getOffers(String pageId,
                              Reading reading)
                              throws FacebookException
Returns a list of offers of the current page.

Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
offers
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#offers - Facebook Developers

createOffer

String createOffer(OfferUpdate offerUpdate)
                   throws FacebookException
Creates an offer for the current page.

Parameters:
offerUpdate - a createOffer to be created
Returns:
The new createOffer ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#offers - Facebook Developers

createOffer

String createOffer(String pageId,
                   OfferUpdate offerUpdate)
                   throws FacebookException
Creates an offers for the page.

Parameters:
pageId - the ID of the page
offerUpdate - a createOffer to be created
Returns:
The new createOffer ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#offers - Facebook Developers

deleteOffer

boolean deleteOffer(String offerId)
                    throws FacebookException
Deletes the createOffer.

Parameters:
offerId - the ID of the createOffer
Returns:
true if delete is successful
Throws:
FacebookException

getOffer

Offer getOffer(String offerId)
               throws FacebookException
Returns the offer.

Parameters:
offerId - the ID of the offer
Returns:
offer
Throws:
FacebookException - when Facebook service or network is unavailable

getLikedPage

Page getLikedPage(String pageId)
                  throws FacebookException
Returns a specific page that the current user has liked.

Parameters:
pageId - the ID of a page
Returns:
page
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#likes - Facebook Developers

getLikedPage

Page getLikedPage(String pageId,
                  Reading reading)
                  throws FacebookException
Returns a specific page that the current user has liked.

Parameters:
pageId - the ID of a page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
page
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#likes - Facebook Developers

getLikedPage

Page getLikedPage(String userId,
                  String pageId)
                  throws FacebookException
Returns a specific page that a user has liked.

Parameters:
userId - the ID of a user
pageId - the ID of a page
Returns:
page
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#likes - Facebook Developers

getLikedPage

Page getLikedPage(String userId,
                  String pageId,
                  Reading reading)
                  throws FacebookException
Returns a specific page that a user has liked.

Parameters:
userId - the ID of a user
pageId - the ID of a page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
page
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#likes - Facebook Developers

getPageLikes

ResponseList<Like> getPageLikes(String pageId)
                                throws FacebookException
Returns likes made by the page.

Parameters:
pageId - the ID of a page
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page Likes - Facebook Developers

getPageLikes

ResponseList<Like> getPageLikes(String pageId,
                                Reading reading)
                                throws FacebookException
Returns likes made by the page.

Parameters:
pageId - the ID of a page
reading - optional reading parameters. see Graph API#reading - Facebook Developers see Graph API#reading - Facebook Developers
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page Likes - Facebook Developers


Copyright © 2019. All rights reserved.