|
Spring Social Facebook | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FeedOperations
Interface defining operations that can be performed on a Facebook feed.
| Method Summary | |
|---|---|
void |
deletePost(java.lang.String id)
Deletes a post. |
java.util.List<Post> |
getFeed()
Retrieves recent posts for the authenticated user. |
java.util.List<Post> |
getFeed(int offset,
int limit)
Retrieves recent posts for the authenticated user. |
java.util.List<Post> |
getFeed(java.lang.String ownerId)
Retrieves recent feed entries for a given user. |
java.util.List<Post> |
getFeed(java.lang.String ownerId,
int offset,
int limit)
Retrieves recent feed entries for a given user. |
java.util.List<Post> |
getHomeFeed()
Retrieves the user's home feed. |
java.util.List<Post> |
getHomeFeed(int offset,
int limit)
Retrieves the user's home feed. |
java.util.List<LinkPost> |
getLinks()
Retrieves the link entries from the authenticated user's feed. |
java.util.List<LinkPost> |
getLinks(int offset,
int limit)
Retrieves the link entries from the authenticated user's feed. |
java.util.List<LinkPost> |
getLinks(java.lang.String ownerId)
Retrieves the link entries from the specified owner's feed. |
java.util.List<LinkPost> |
getLinks(java.lang.String ownerId,
int offset,
int limit)
Retrieves the link entries from the specified owner's feed. |
java.util.List<NotePost> |
getNotes()
Retrieves the note entries from the authenticated user's feed. |
java.util.List<NotePost> |
getNotes(int offset,
int limit)
Retrieves the note entries from the authenticated user's feed. |
java.util.List<NotePost> |
getNotes(java.lang.String ownerId)
Retrieves the note entries from the specified owner's feed. |
java.util.List<NotePost> |
getNotes(java.lang.String ownerId,
int offset,
int limit)
Retrieves the note entries from the specified owner's feed. |
Post |
getPost(java.lang.String entryId)
Retrieves a single post. |
java.util.List<Post> |
getPosts()
Retrieves the post entries from the authenticated user's feed. |
java.util.List<Post> |
getPosts(int offset,
int limit)
Retrieves the post entries from the authenticated user's feed. |
java.util.List<Post> |
getPosts(java.lang.String ownerId)
Retrieves the post entries from the specified owner's feed. |
java.util.List<Post> |
getPosts(java.lang.String ownerId,
int offset,
int limit)
Retrieves the post entries from the specified owner's feed. |
java.util.List<StatusPost> |
getStatuses()
Retrieves the status entries from the authenticated user's feed. |
java.util.List<StatusPost> |
getStatuses(int offset,
int limit)
Retrieves the status entries from the authenticated user's feed. |
java.util.List<StatusPost> |
getStatuses(java.lang.String userId)
Retrieves the status entries from the specified user's feed. |
java.util.List<StatusPost> |
getStatuses(java.lang.String userId,
int offset,
int limit)
Retrieves the status entries from the specified user's feed. |
java.lang.String |
post(java.lang.String ownerId,
java.lang.String message)
Posts a message to a feed. |
java.lang.String |
postLink(java.lang.String message,
FacebookLink link)
Posts a link to the authenticated user's feed. |
java.lang.String |
postLink(java.lang.String ownerId,
java.lang.String message,
FacebookLink link)
Posts a link to a feed. |
java.util.List<Post> |
searchHomeFeed(java.lang.String query)
Searches the authenticated user's home feed. |
java.util.List<Post> |
searchHomeFeed(java.lang.String query,
int offset,
int limit)
Searches the authenticated user's home feed. |
java.util.List<Post> |
searchPublicFeed(java.lang.String query)
Searches Facebook's public feed. |
java.util.List<Post> |
searchPublicFeed(java.lang.String query,
int offset,
int limit)
Searches Facebook's public feed. |
java.util.List<Post> |
searchUserFeed(java.lang.String query)
Searches the authenticated user's feed. |
java.util.List<Post> |
searchUserFeed(java.lang.String query,
int offset,
int limit)
Searches the authenticated user's feed. |
java.util.List<Post> |
searchUserFeed(java.lang.String userId,
java.lang.String query)
Searches a specified user's feed. |
java.util.List<Post> |
searchUserFeed(java.lang.String userId,
java.lang.String query,
int offset,
int limit)
Searches a specified user's feed. |
java.lang.String |
updateStatus(java.lang.String message)
Posts a status update to the authenticated user's feed. |
| Method Detail |
|---|
java.util.List<Post> getFeed()
Posts for the authenticated user.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.util.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.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.java.util.List<Post> getFeed(java.lang.String ownerId)
ownerId - the Facebook ID or alias for the owner (user, group, event, page, etc) of the feed.
Posts for the specified user.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.util.List<Post> getFeed(java.lang.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.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.java.util.List<Post> getHomeFeed()
Posts from the authenticated user's home feed.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "read_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.util.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.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "read_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.Post getPost(java.lang.String entryId)
entryId - the entry ID
Post
org.springframework.social.ApiException - if there is an error while communicating with Facebook.java.util.List<StatusPost> getStatuses()
Posts.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.util.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.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.java.util.List<StatusPost> getStatuses(java.lang.String userId)
userId - the user's ID
Posts.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "read_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.util.List<StatusPost> getStatuses(java.lang.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.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "read_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.java.util.List<LinkPost> getLinks()
Posts.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "read_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.util.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.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "read_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.java.util.List<LinkPost> getLinks(java.lang.String ownerId)
ownerId - the owner of the feed (could be a user, page, event, etc)
Posts.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "read_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.util.List<LinkPost> getLinks(java.lang.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.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "read_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.java.util.List<NotePost> getNotes()
Posts.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "read_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.util.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.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "read_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.java.util.List<NotePost> getNotes(java.lang.String ownerId)
ownerId - the owner of the feed (could be a user, page, event, etc)
Posts.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "read_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.util.List<NotePost> getNotes(java.lang.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.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "read_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.java.util.List<Post> getPosts()
Posts.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "read_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.util.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.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "read_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.java.util.List<Post> getPosts(java.lang.String ownerId)
ownerId - the owner of the feed (could be a user, page, event, etc)
Posts.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "read_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.util.List<Post> getPosts(java.lang.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.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "read_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.java.lang.String updateStatus(java.lang.String message)
message - the message to post.
org.springframework.social.DuplicateStatusException - if the status message duplicates a previously posted status.
org.springframework.social.RateLimitExceededException - if the per-user/per-app rate limit is exceeded.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "publish_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.lang.String postLink(java.lang.String message,
FacebookLink link)
message - a message to send with the link.
org.springframework.social.DuplicateStatusException - if the post duplicates a previous post.
org.springframework.social.RateLimitExceededException - if the per-user/per-app rate limit is exceeded.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "publish_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.lang.String post(java.lang.String ownerId,
java.lang.String message)
ownerId - the feed owner ID. Could be a user ID or a page ID.message - the message to post.
org.springframework.social.DuplicateStatusException - if the post duplicates a previous post.
org.springframework.social.RateLimitExceededException - if the per-user/per-app rate limit is exceeded.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "publish_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.lang.String postLink(java.lang.String ownerId,
java.lang.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.
org.springframework.social.DuplicateStatusException - if the post duplicates a previous post.
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "publish_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.void deletePost(java.lang.String id)
id - the feed entry ID
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "publish_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.java.util.List<Post> searchPublicFeed(java.lang.String query)
query - the search query (e.g., "Dr Seuss")
Posts that match the search query
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
java.util.List<Post> searchPublicFeed(java.lang.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 query
org.springframework.social.ApiException - if there is an error while communicating with Facebook.java.util.List<Post> searchHomeFeed(java.lang.String query)
query - the search query (e.g., "Dr Seuss")
Posts that match the search query
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.util.List<Post> searchHomeFeed(java.lang.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 query
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.java.util.List<Post> searchUserFeed(java.lang.String query)
query - the search query (e.g., "football")
Posts that match the search query
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.util.List<Post> searchUserFeed(java.lang.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 query
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.util.List<Post> searchUserFeed(java.lang.String userId,
java.lang.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 query
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.util.List<Post> searchUserFeed(java.lang.String userId,
java.lang.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 query
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
|
Spring Social Facebook | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||