public interface PageService
| Modifier and Type | Method and Description |
|---|---|
List<Account> |
getAccounts()
Retrieves a list of Account objects for the pages that the authenticated user is an administrator.
|
Page |
getPage(String pageId)
Retrieves data for a page.
|
boolean |
isPageAdmin(String pageId)
Checks whether the logged-in user for this session is an admin of the page with the given page ID.
|
String |
post(String pageId,
String message)
Posts a message to a page's feed as a page administrator.
|
String |
post(String pageId,
String message,
FacebookLink link)
Posts a link to the page's feed as a page administrator.
|
Page getPage(String pageId)
pageId - the page ID.Pageboolean isPageAdmin(String pageId)
pageId - the page IDApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "manage_pages" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Account> getAccounts()
String post(String pageId, String message)
FeedService.post(String, String) instead.pageId - the page IDmessage - the message to postApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "manage_pages" permission.PageAdministrationException - if the user is not a page administrator.MissingAuthorizationException - if FacebookTemplate was not created with an access token.String post(String pageId, String message, FacebookLink link)
FeedService.postLink(String, String, FacebookLink) instead.pageId - the page IDmessage - a message to send with the link.link - the link detailsApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "manage_pages" permission.PageAdministrationException - if the user is not a page administrator.MissingAuthorizationException - if FacebookTemplate was not created with an access token.Copyright © 2011-2013 Seam Framework. All Rights Reserved.