public interface FeedService
| Modifier and Type | Method and Description |
|---|---|
void |
deletePost(String id)
Deletes a post.
|
List<Post> |
getFeed()
Retrieves recent posts for the authenticated user.
|
List<Post> |
getFeed(int offset,
int limit)
Retrieves recent posts for the authenticated user.
|
List<Post> |
getFeed(String ownerId)
Retrieves recent feed entries for a given user.
|
List<Post> |
getFeed(String ownerId,
int offset,
int limit)
Retrieves recent feed entries for a given user.
|
List<Post> |
getHomeFeed()
Retrieves the user's home feed.
|
List<Post> |
getHomeFeed(int offset,
int limit)
Retrieves the user's home feed.
|
List<LinkPost> |
getLinks()
Retrieves the link entries from the authenticated user's feed.
|
List<LinkPost> |
getLinks(int offset,
int limit)
Retrieves the link entries from the authenticated user's feed.
|
List<LinkPost> |
getLinks(String ownerId)
Retrieves the link entries from the specified owner's feed.
|
List<LinkPost> |
getLinks(String ownerId,
int offset,
int limit)
Retrieves the link entries from the specified owner's feed.
|
List<NotePost> |
getNotes()
Retrieves the note entries from the authenticated user's feed.
|
List<NotePost> |
getNotes(int offset,
int limit)
Retrieves the note entries from the authenticated user's feed.
|
List<NotePost> |
getNotes(String ownerId)
Retrieves the note entries from the specified owner's feed.
|
List<NotePost> |
getNotes(String ownerId,
int offset,
int limit)
Retrieves the note entries from the specified owner's feed.
|
Post |
getPost(String entryId)
Retrieves a single post.
|
List<Post> |
getPosts()
Retrieves the post entries from the authenticated user's feed.
|
List<Post> |
getPosts(int offset,
int limit)
Retrieves the post entries from the authenticated user's feed.
|
List<Post> |
getPosts(String ownerId)
Retrieves the post entries from the specified owner's feed.
|
List<Post> |
getPosts(String ownerId,
int offset,
int limit)
Retrieves the post entries from the specified owner's feed.
|
List<StatusPost> |
getStatuses()
Retrieves the status entries from the authenticated user's feed.
|
List<StatusPost> |
getStatuses(int offset,
int limit)
Retrieves the status entries from the authenticated user's feed.
|
List<StatusPost> |
getStatuses(String userId)
Retrieves the status entries from the specified user's feed.
|
List<StatusPost> |
getStatuses(String userId,
int offset,
int limit)
Retrieves the status entries from the specified user's feed.
|
String |
post(String ownerId,
String message)
Posts a message to a feed.
|
String |
postLink(String message,
FacebookLink link)
Posts a link to the authenticated user's feed.
|
String |
postLink(String ownerId,
String message,
FacebookLink link)
Posts a link to a feed.
|
List<Post> |
searchHomeFeed(String query)
Searches the authenticated user's home feed.
|
List<Post> |
searchHomeFeed(String query,
int offset,
int limit)
Searches the authenticated user's home feed.
|
List<Post> |
searchPublicFeed(String query)
Searches Facebook's public feed.
|
List<Post> |
searchPublicFeed(String query,
int offset,
int limit)
Searches Facebook's public feed.
|
List<Post> |
searchUserFeed(String query)
Searches the authenticated user's feed.
|
List<Post> |
searchUserFeed(String query,
int offset,
int limit)
Searches the authenticated user's feed.
|
List<Post> |
searchUserFeed(String userId,
String query)
Searches a specified user's feed.
|
List<Post> |
searchUserFeed(String userId,
String query,
int offset,
int limit)
Searches a specified user's feed.
|
String |
updateStatus(String message)
Posts a status update to the authenticated user's feed.
|
List<Post> getFeed()
Posts for the authenticated user.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Post> getFeed(int offset, int limit)
offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts for the authenticated user.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Post> getFeed(String ownerId)
ownerId - the Facebook ID or alias for the owner (user, group, event, page, etc) of the feed.Posts for the specified user.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Post> getFeed(String ownerId, int offset, int limit)
ownerId - the Facebook ID or alias for the owner (user, group, event, page, etc) of the feed.offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts for the specified user.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Post> getHomeFeed()
Posts from the authenticated user's home feed.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "read_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Post> getHomeFeed(int offset, int limit)
offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts from the authenticated user's home feed.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "read_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.Post getPost(String entryId)
entryId - the entry IDPostApiException - if there is an error while communicating with Facebook.List<StatusPost> getStatuses()
Posts.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<StatusPost> getStatuses(int offset, int limit)
offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<StatusPost> getStatuses(String userId)
userId - the user's IDPosts.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "read_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<StatusPost> getStatuses(String userId, int offset, int limit)
userId - the user's IDoffset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "read_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<LinkPost> getLinks()
Posts.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "read_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<LinkPost> getLinks(int offset, int limit)
offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "read_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<LinkPost> getLinks(String ownerId)
ownerId - the owner of the feed (could be a user, page, event, etc)Posts.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "read_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<LinkPost> getLinks(String ownerId, int offset, int limit)
ownerId - the owner of the feed (could be a user, page, event, etc)offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "read_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<NotePost> getNotes()
Posts.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "read_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<NotePost> getNotes(int offset, int limit)
offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "read_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<NotePost> getNotes(String ownerId)
ownerId - the owner of the feed (could be a user, page, event, etc)Posts.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "read_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<NotePost> getNotes(String ownerId, int offset, int limit)
ownerId - the owner of the feed (could be a user, page, event, etc)offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "read_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Post> getPosts()
Posts.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "read_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Post> getPosts(int offset, int limit)
offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "read_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Post> getPosts(String ownerId)
ownerId - the owner of the feed (could be a user, page, event, etc)Posts.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "read_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Post> getPosts(String ownerId, int offset, int limit)
ownerId - the owner of the feed (could be a user, page, event, etc)offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "read_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.String updateStatus(String message)
message - the message to post.DuplicateStatusException - if the status message duplicates a previously posted status.RateLimitExceededException - if the per-user/per-app rate limit is exceeded.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "publish_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.String postLink(String message, FacebookLink link)
message - a message to send with the link.DuplicateStatusException - if the post duplicates a previous post.RateLimitExceededException - if the per-user/per-app rate limit is exceeded.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "publish_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.String post(String ownerId, String message)
ownerId - the feed owner ID. Could be a user ID or a page ID.message - the message to post.DuplicateStatusException - if the post duplicates a previous post.RateLimitExceededException - if the per-user/per-app rate limit is exceeded.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "publish_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.String postLink(String ownerId, String message, FacebookLink link)
ownerId - the feed owner ID. Could be a user ID or a page ID.message - a message to send with the link.DuplicateStatusException - if the post duplicates a previous post.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "publish_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.void deletePost(String id)
id - the feed entry IDApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "publish_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Post> searchPublicFeed(String query)
query - the search query (e.g., "Dr Seuss")Posts that match the search queryApiException - if there is an error while communicating with Facebook.List<Post> searchPublicFeed(String query, int offset, int limit)
query - the search query (e.g., "Dr Seuss")offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts that match the search queryApiException - if there is an error while communicating with Facebook.List<Post> searchHomeFeed(String query)
query - the search query (e.g., "Dr Seuss")Posts that match the search queryApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Post> searchHomeFeed(String query, int offset, int limit)
query - the search query (e.g., "Dr Seuss")offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts that match the search queryApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Post> searchUserFeed(String query)
query - the search query (e.g., "football")Posts that match the search queryApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Post> searchUserFeed(String query, int offset, int limit)
query - the search query (e.g., "football")offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts that match the search queryApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Post> searchUserFeed(String userId, String query)
userId - the ID of the user whose feed is to be searchedquery - the search query (e.g., "football")Posts that match the search queryApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Post> searchUserFeed(String userId, String query, int offset, int limit)
userId - the ID of the user whose feed is to be searchedquery - the search query (e.g., "football")offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts that match the search queryApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.Copyright © 2011-2013 Seam Framework. All Rights Reserved.