public interface PageMethods
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Boolean> |
block(java.util.List<java.lang.String> userIds)
Blocks users from posting content to the current page.
|
java.util.Map<java.lang.String,java.lang.Boolean> |
block(java.lang.String pageId,
java.util.List<java.lang.String> userIds)
Blocks users from posting content to the current page.
|
java.lang.String |
createMilestone(MilestoneUpdate milestoneUpdate)
Creates the milestone for the current page.
|
java.lang.String |
createMilestone(java.lang.String pageId,
MilestoneUpdate milestoneUpdate)
Creates the milestone for the page.
|
java.lang.String |
createOffer(OfferUpdate offerUpdate)
Creates an offer for the current page.
|
java.lang.String |
createOffer(java.lang.String pageId,
OfferUpdate offerUpdate)
Creates an offers for the page.
|
boolean |
deleteMilestone(java.lang.String milestoneId)
Deletes the milestone.
|
boolean |
deleteOffer(java.lang.String offerId)
Deletes the createOffer.
|
boolean |
deleteTab(java.lang.String tabId)
Deletes an installed profile_tab where is_permanent is not true for the current page.
|
boolean |
deleteTab(java.lang.String pageId,
java.lang.String tabId)
Deletes an installed profile_tab where is_permanent is not true for the page.
|
boolean |
displayPagePost(java.lang.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(java.lang.String pageId)
Returns a list of users blocked from the Page.
|
ResponseList<User> |
getBlocked(java.lang.String pageId,
Reading reading)
Returns a list of users blocked from the Page.
|
ResponseList<Page> |
getGlobalBrandChildren(java.lang.String pageId)
Returns all children pages of a specific page.
|
ResponseList<Page> |
getGlobalBrandChildren(java.lang.String pageId,
Reading reading)
Returns all children pages of a specific page.
|
ResponseList<Tab> |
getInstalledTabs(java.util.List<java.lang.String> appIds)
Returns the current Page's profile tabs if a specific app is installed.
|
ResponseList<Tab> |
getInstalledTabs(java.util.List<java.lang.String> appIds,
Reading reading)
Returns the current Page's profile tabs if a specific app is installed.
|
ResponseList<Tab> |
getInstalledTabs(java.lang.String pageId,
java.util.List<java.lang.String> appIds)
Returns the Page's profile tabs if a specific app is installed.
|
ResponseList<Tab> |
getInstalledTabs(java.lang.String pageId,
java.util.List<java.lang.String> appIds,
Reading reading)
Returns the Page's profile tabs if a specific app is installed.
|
Page |
getLikedPage(java.lang.String pageId)
Returns a specific page that the current user has liked.
|
Page |
getLikedPage(java.lang.String pageId,
Reading reading)
Returns a specific page that the current user has liked.
|
Page |
getLikedPage(java.lang.String userId,
java.lang.String pageId)
Returns a specific page that a user has liked.
|
Page |
getLikedPage(java.lang.String userId,
java.lang.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(java.lang.String pageId)
Returns a list of the Page's milestones.
|
ResponseList<Milestone> |
getMilestones(java.lang.String pageId,
Reading reading)
Returns a list of the Page's milestones.
|
Offer |
getOffer(java.lang.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(java.lang.String pageId)
Returns a list of offers of the current page.
|
ResponseList<Offer> |
getOffers(java.lang.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(java.lang.String pageId)
Returns the page.
|
Page |
getPage(java.lang.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(java.lang.String pageId)
Returns a list of the Page's Admins.
|
ResponseList<Admin> |
getPageAdmins(java.lang.String pageId,
Reading reading)
Returns a list of the Page's Admins.
|
ResponseList<Insight> |
getPageInsights(java.lang.String pageId)
Returns the page's insights data.
|
ResponseList<Insight> |
getPageInsights(java.lang.String pageId,
Reading reading)
Returns the page's insights data.
|
java.net.URL |
getPagePictureURL()
Returns the url of a page's profile picture.
|
java.net.URL |
getPagePictureURL(PictureSize size)
Returns the url of a page's profile picture.
|
java.net.URL |
getPagePictureURL(java.lang.String pageId)
Returns the url of a page's profile picture.
|
java.net.URL |
getPagePictureURL(java.lang.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(java.lang.String pageId)
Returns the settings for the page.
|
ResponseList<Tagged> |
getPageTagged(java.lang.String pageId)
Returns the photos, videos, and posts in which the Page has been tagged.
|
ResponseList<Tagged> |
getPageTagged(java.lang.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(java.lang.String pageId)
Returns the Page's own posts, including unpublished and scheduled posts.
|
ResponseList<Post> |
getPromotablePosts(java.lang.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(java.lang.String pageId)
Returns the Page's profile tabs.
|
ResponseList<Tab> |
getTabs(java.lang.String pageId,
Reading reading)
Returns the Page's profile tabs.
|
boolean |
installTab(java.lang.String appId)
Installs a profile_tab at the end of the current list of installed tabs for the current page.
|
boolean |
installTab(java.lang.String pageId,
java.lang.String appId)
Installs a profile_tab at the end of the current list of installed tabs for the current page.
|
java.lang.String |
postBackdatingFeed(BackdatingPostUpdate backdatingPostUpdate)
Creates the post that's back-dated to the current page's wall.
|
java.lang.String |
postBackdatingFeed(java.lang.String pageId,
BackdatingPostUpdate backdatingPostUpdate)
Creates the post that's back-dated to a page's wall.
|
java.lang.String |
postPagePhoto(PagePhotoUpdate pagePhotoUpdate)
Posts a photo to the current page's wall.
|
java.lang.String |
postPagePhoto(java.lang.String pageId,
PagePhotoUpdate pagePhotoUpdate)
Posts a photo to a page's wall.
|
boolean |
unblock(java.lang.String userId)
Unblocks the blocked user for the current page.
|
boolean |
unblock(java.lang.String pageId,
java.lang.String userId)
Unblocks the blocked user for the page.
|
boolean |
updatePageBasicAttributes(PageUpdate pageUpdate)
Updates a Page's basic attributes.
|
boolean |
updatePageBasicAttributes(java.lang.String pageId,
PageUpdate pageUpdate)
Updates a Page's basic attributes.
|
boolean |
updatePageCoverPhoto(PageCoverUpdate pageCoverUpdate)
Updates the profile photo for the current page.
|
boolean |
updatePageCoverPhoto(java.lang.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(java.lang.String pageId,
Media source)
Updates the profile photo for a Page.
|
boolean |
updatePageProfilePhoto(java.lang.String pageId,
java.net.URL picture)
Updates the profile photo for a Page.
|
boolean |
updatePageProfilePhoto(java.net.URL picture)
Updates the profile photo for the current Page.
|
boolean |
updatePageSetting(PageSettingUpdate pageSettingUpdate)
Updates the setting for the current page.
|
boolean |
updatePageSetting(java.lang.String pageId,
PageSettingUpdate pageSettingUpdate)
Updates the setting for the page.
|
boolean |
updateTab(java.lang.String pageId,
java.lang.String tabId,
TabUpdate tabUpdate)
Updates an installed profile_tab for the page.
|
boolean |
updateTab(java.lang.String tabId,
TabUpdate tabUpdate)
Updates an installed profile_tab for the current page.
|
Page getPage() throws FacebookException
FacebookException - when Facebook service or network is unavailablePage getPage(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailablePage getPage(java.lang.String pageId) throws FacebookException
pageId - the ID of the pageFacebookException - when Facebook service or network is unavailablePage getPage(java.lang.String pageId, Reading reading) throws FacebookException
pageId - the ID of the pagereading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailablejava.net.URL getPagePictureURL()
throws FacebookException
FacebookException - when Facebook service or network is unavailablejava.net.URL getPagePictureURL(PictureSize size) throws FacebookException
size - picture sizeFacebookException - when Facebook service or network is unavailablejava.net.URL getPagePictureURL(java.lang.String pageId)
throws FacebookException
pageId - the ID of a pageFacebookException - when Facebook service or network is unavailablejava.net.URL getPagePictureURL(java.lang.String pageId,
PictureSize size)
throws FacebookException
pageId - the ID of a pagesize - picture sizeFacebookException - when Facebook service or network is unavailableResponseList<Post> getPromotablePosts() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<Post> getPromotablePosts(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Post> getPromotablePosts(java.lang.String pageId) throws FacebookException
pageId - the ID of the pageFacebookException - when Facebook service or network is unavailableResponseList<Post> getPromotablePosts(java.lang.String pageId, Reading reading) throws FacebookException
pageId - the ID of the pagereading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableboolean updatePageBasicAttributes(PageUpdate pageUpdate) throws FacebookException
pageUpdate - the page to be updatedFacebookException - when Facebook service or network is unavailableboolean updatePageBasicAttributes(java.lang.String pageId,
PageUpdate pageUpdate)
throws FacebookException
pageId - the ID of the pagepageUpdate - the page to be updatedFacebookException - when Facebook service or network is unavailableboolean updatePageProfilePhoto(java.net.URL picture)
throws FacebookException
picture - A URL to the photoFacebookException - when Facebook service or network is unavailableboolean updatePageProfilePhoto(java.lang.String pageId,
java.net.URL picture)
throws FacebookException
pageId - the ID of the pagepicture - A URL to the photoFacebookException - when Facebook service or network is unavailableboolean updatePageProfilePhoto(Media source) throws FacebookException
source - Photo contentFacebookException - when Facebook service or network is unavailableboolean updatePageProfilePhoto(java.lang.String pageId,
Media source)
throws FacebookException
pageId - the ID of the pagesource - Photo contentFacebookException - when Facebook service or network is unavailableboolean updatePageCoverPhoto(PageCoverUpdate pageCoverUpdate) throws FacebookException
pageCoverUpdate - the cover photo for the page to be updatedFacebookException - when Facebook service or network is unavailableboolean updatePageCoverPhoto(java.lang.String pageId,
PageCoverUpdate pageCoverUpdate)
throws FacebookException
pageId - the ID of the pagepageCoverUpdate - the cover photo for the page to be updatedFacebookException - when Facebook service or network is unavailableboolean displayPagePost(java.lang.String postId,
boolean isHidden)
throws FacebookException
postId - the ID of the post in the pageisHidden - whether a post is hiddenFacebookExceptionResponseList<PageSetting> getPageSettings() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<PageSetting> getPageSettings(java.lang.String pageId) throws FacebookException
pageId - the ID of the pageFacebookException - when Facebook service or network is unavailableboolean updatePageSetting(PageSettingUpdate pageSettingUpdate) throws FacebookException
pageSettingUpdate - settingFacebookException - when Facebook service or network is unavailableboolean updatePageSetting(java.lang.String pageId,
PageSettingUpdate pageSettingUpdate)
throws FacebookException
pageId - the ID of the pagepageSettingUpdate - settingFacebookException - when Facebook service or network is unavailablejava.lang.String postBackdatingFeed(BackdatingPostUpdate backdatingPostUpdate) throws FacebookException
backdatingPostUpdate - the post to be createdFacebookException - when Facebook service or network is unavailablejava.lang.String postBackdatingFeed(java.lang.String pageId,
BackdatingPostUpdate backdatingPostUpdate)
throws FacebookException
pageId - the ID of a pagebackdatingPostUpdate - the post to be createdFacebookException - when Facebook service or network is unavailablejava.lang.String postPagePhoto(PagePhotoUpdate pagePhotoUpdate) throws FacebookException
pagePhotoUpdate - photo content, targeting and moreFacebookException - when Facebook service or network is unavailablejava.lang.String postPagePhoto(java.lang.String pageId,
PagePhotoUpdate pagePhotoUpdate)
throws FacebookException
pageId - the ID of a pagepagePhotoUpdate - photo content, targeting and moreFacebookException - when Facebook service or network is unavailableResponseList<Page> getGlobalBrandChildren(java.lang.String pageId) throws FacebookException
pageId - the ID of the pageFacebookExceptionResponseList<Page> getGlobalBrandChildren(java.lang.String pageId, Reading reading) throws FacebookException
pageId - the ID of the pagereading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookExceptionResponseList<Insight> getPageInsights(java.lang.String pageId) throws FacebookException
pageId - the ID of the pageFacebookExceptionResponseList<Insight> getPageInsights(java.lang.String pageId, Reading reading) throws FacebookException
pageId - the ID of the pagereading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookExceptionResponseList<Tagged> getPageTagged(java.lang.String pageId) throws FacebookException
pageId - the ID of the pageFacebookExceptionResponseList<Tagged> getPageTagged(java.lang.String pageId, Reading reading) throws FacebookException
pageId - the ID of the pagereading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookExceptionResponseList<Milestone> getMilestones() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<Milestone> getMilestones(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Milestone> getMilestones(java.lang.String pageId) throws FacebookException
pageId - the ID of the pageFacebookException - when Facebook service or network is unavailableResponseList<Milestone> getMilestones(java.lang.String pageId, Reading reading) throws FacebookException
pageId - the ID of the pagereading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailablejava.lang.String createMilestone(MilestoneUpdate milestoneUpdate) throws FacebookException
milestoneUpdate - a milestone to be createdFacebookException - when Facebook service or network is unavailablejava.lang.String createMilestone(java.lang.String pageId,
MilestoneUpdate milestoneUpdate)
throws FacebookException
pageId - the ID of the pagemilestoneUpdate - a milestone to be createdFacebookException - when Facebook service or network is unavailableboolean deleteMilestone(java.lang.String milestoneId)
throws FacebookException
milestoneId - the ID of a milestoneFacebookException - when Facebook service or network is unavailableResponseList<Admin> getPageAdmins() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<Admin> getPageAdmins(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Admin> getPageAdmins(java.lang.String pageId) throws FacebookException
pageId - the ID of the pageFacebookException - when Facebook service or network is unavailableResponseList<Admin> getPageAdmins(java.lang.String pageId, Reading reading) throws FacebookException
pageId - the ID of the pagereading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Tab> getTabs() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<Tab> getTabs(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Tab> getTabs(java.lang.String pageId) throws FacebookException
pageId - the ID of the pageFacebookException - when Facebook service or network is unavailableResponseList<Tab> getTabs(java.lang.String pageId, Reading reading) throws FacebookException
pageId - the ID of the pagereading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Tab> getInstalledTabs(java.util.List<java.lang.String> appIds) throws FacebookException
appIds - the IDs of appFacebookException - when Facebook service or network is unavailableResponseList<Tab> getInstalledTabs(java.util.List<java.lang.String> appIds, Reading reading) throws FacebookException
appIds - the IDs of appreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Tab> getInstalledTabs(java.lang.String pageId, java.util.List<java.lang.String> appIds) throws FacebookException
pageId - the ID of the pageappIds - the IDs of appFacebookException - when Facebook service or network is unavailableResponseList<Tab> getInstalledTabs(java.lang.String pageId, java.util.List<java.lang.String> appIds, Reading reading) throws FacebookException
pageId - the ID of the pageappIds - the IDs of appreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableboolean installTab(java.lang.String appId)
throws FacebookException
appId - the ID of the application for which to install the tabFacebookExceptionboolean installTab(java.lang.String pageId,
java.lang.String appId)
throws FacebookException
pageId - the ID of the pageappId - the ID of the application for which to install the tabFacebookExceptionboolean updateTab(java.lang.String tabId,
TabUpdate tabUpdate)
throws FacebookException
tabId - the ID of the tabtabUpdate - tab to be updatedFacebookExceptionboolean updateTab(java.lang.String pageId,
java.lang.String tabId,
TabUpdate tabUpdate)
throws FacebookException
pageId - the ID of the pagetabId - the ID of the tabtabUpdate - tab to be updatedFacebookExceptionboolean deleteTab(java.lang.String tabId)
throws FacebookException
tabId - the ID of the tabFacebookExceptionboolean deleteTab(java.lang.String pageId,
java.lang.String tabId)
throws FacebookException
pageId - the ID of the pagetabId - the ID of the tabFacebookExceptionResponseList<User> getBlocked() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<User> getBlocked(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<User> getBlocked(java.lang.String pageId) throws FacebookException
pageId - the ID of the pageFacebookException - when Facebook service or network is unavailableResponseList<User> getBlocked(java.lang.String pageId, Reading reading) throws FacebookException
pageId - the ID of the pagereading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailablejava.util.Map<java.lang.String,java.lang.Boolean> block(java.util.List<java.lang.String> userIds)
throws FacebookException
userIds - user IDs you wish to blockFacebookException - when Facebook service or network is unavailablejava.util.Map<java.lang.String,java.lang.Boolean> block(java.lang.String pageId,
java.util.List<java.lang.String> userIds)
throws FacebookException
pageId - the ID of the pageuserIds - user IDs you wish to blockFacebookException - when Facebook service or network is unavailableboolean unblock(java.lang.String userId)
throws FacebookException
userId - the IDs of the userFacebookException - when Facebook service or network is unavailableboolean unblock(java.lang.String pageId,
java.lang.String userId)
throws FacebookException
pageId - the ID of the pageuserId - the IDs of the userFacebookException - when Facebook service or network is unavailableResponseList<Offer> getOffers() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<Offer> getOffers(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Offer> getOffers(java.lang.String pageId) throws FacebookException
pageId - the ID of the pageFacebookException - when Facebook service or network is unavailableResponseList<Offer> getOffers(java.lang.String pageId, Reading reading) throws FacebookException
pageId - the ID of the pagereading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailablejava.lang.String createOffer(OfferUpdate offerUpdate) throws FacebookException
offerUpdate - a createOffer to be createdFacebookException - when Facebook service or network is unavailablejava.lang.String createOffer(java.lang.String pageId,
OfferUpdate offerUpdate)
throws FacebookException
pageId - the ID of the pageofferUpdate - a createOffer to be createdFacebookException - when Facebook service or network is unavailableboolean deleteOffer(java.lang.String offerId)
throws FacebookException
offerId - the ID of the createOfferFacebookExceptionOffer getOffer(java.lang.String offerId) throws FacebookException
offerId - the ID of the offerFacebookException - when Facebook service or network is unavailablePage getLikedPage(java.lang.String pageId) throws FacebookException
pageId - the ID of a pageFacebookException - when Facebook service or network is unavailablePage getLikedPage(java.lang.String pageId, Reading reading) throws FacebookException
pageId - the ID of a pagereading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailablePage getLikedPage(java.lang.String userId, java.lang.String pageId) throws FacebookException
userId - the ID of a userpageId - the ID of a pageFacebookException - when Facebook service or network is unavailablePage getLikedPage(java.lang.String userId, java.lang.String pageId, Reading reading) throws FacebookException
userId - the ID of a userpageId - the ID of a pagereading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailable