public interface FeedOperations
Modifier and Type | Method and Description |
---|---|
void |
deletePost(String id)
Deletes a post.
|
Post |
getCheckin(String checkinId)
Retrieves details for a single checkin.
|
PagedList<Post> |
getCheckins()
Retrieves a list of up to 25 recent checkins for the authenticated user.
|
PagedList<Post> |
getCheckins(PagingParameters pagedListParameters)
Retrieves a list of checkins for the authenticated user.
|
PagedList<Post> |
getFeed()
Retrieves recent posts for the authenticated user.
|
PagedList<Post> |
getFeed(PagingParameters pagedListParameters)
Retrieves recent posts for the authenticated user.
|
PagedList<Post> |
getFeed(String ownerId)
Retrieves recent feed entries for a given user.
|
PagedList<Post> |
getFeed(String ownerId,
PagingParameters pagedListParameters)
Retrieves recent feed entries for a given user.
|
PagedList<Post> |
getHomeFeed()
Retrieves the user's home feed.
|
PagedList<Post> |
getHomeFeed(PagingParameters pagedListParameters)
Retrieves the user's home feed.
|
PagedList<Post> |
getLinks()
Retrieves the link entries from the authenticated user's feed.
|
PagedList<Post> |
getLinks(PagingParameters pagedListParameters)
Retrieves the link entries from the authenticated user's feed.
|
PagedList<Post> |
getLinks(String ownerId)
Retrieves the link entries from the specified owner's feed.
|
PagedList<Post> |
getLinks(String ownerId,
PagingParameters pagedListParameters)
Retrieves the link entries from the specified owner's feed.
|
Post |
getPost(String entryId)
Retrieves a single post.
|
PagedList<Post> |
getPosts()
Retrieves the post entries from the authenticated user's feed.
|
PagedList<Post> |
getPosts(PagingParameters pagedListParameters)
Retrieves the post entries from the authenticated user's feed.
|
PagedList<Post> |
getPosts(String ownerId)
Retrieves the post entries from the specified owner's feed.
|
PagedList<Post> |
getPosts(String ownerId,
PagingParameters pagedListParameters)
Retrieves the post entries from the specified owner's feed.
|
PagedList<Post> |
getStatuses()
Retrieves the status entries from the authenticated user's feed.
|
PagedList<Post> |
getStatuses(PagingParameters pagedListParameters)
Retrieves the status entries from the authenticated user's feed.
|
PagedList<Post> |
getStatuses(String userId)
Retrieves the status entries from the specified user's feed.
|
PagedList<Post> |
getStatuses(String userId,
PagingParameters pagedListParameters)
Retrieves the status entries from the specified user's feed.
|
PagedList<Post> |
getTagged()
Retrieves the post entries that the authenticated user was tagged in.
|
PagedList<Post> |
getTagged(PagingParameters pagedListParameters)
Retrieves the post entries that the authenticated user was tagged in.
|
PagedList<Post> |
getTagged(String ownerId)
Retrieves the post entries that the specified user was tagged in.
|
PagedList<Post> |
getTagged(String ownerId,
PagingParameters pagedListParameters)
Retrieves the post entries that the specified user was tagged in.
|
String |
post(PostData post)
Adds a Post to a 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.
|
String |
updateStatus(String message)
Posts a status update to the authenticated user's feed.
|
PagedList<Post> getFeed()
Post
s 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.PagedList<Post> getFeed(PagingParameters pagedListParameters)
pagedListParameters
- the parameters defining the bounds of the list to return.Post
s 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.PagedList<Post> getFeed(String ownerId)
ownerId
- the Facebook ID or alias for the owner (user, group, event, page, etc) of the feed.Post
s 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.PagedList<Post> getFeed(String ownerId, PagingParameters pagedListParameters)
ownerId
- the Facebook ID or alias for the owner (user, group, event, page, etc) of the feed.pagedListParameters
- the parameters defining the bounds of the list to return.Post
s 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.PagedList<Post> getHomeFeed()
Post
s 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.PagedList<Post> getHomeFeed(PagingParameters pagedListParameters)
pagedListParameters
- the parameters defining the bounds of the list to return.Post
s 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(String entryId)
entryId
- the entry IDPost
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.PagedList<Post> getStatuses()
Post
s.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.PagedList<Post> getStatuses(PagingParameters pagedListParameters)
pagedListParameters
- the parameters defining the bounds of the list to return.Post
s.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.PagedList<Post> getStatuses(String userId)
userId
- the user's IDPost
s.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.PagedList<Post> getStatuses(String userId, PagingParameters pagedListParameters)
userId
- the user's IDpagedListParameters
- the parameters defining the bounds of the list to return.Post
s.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.PagedList<Post> getLinks()
Post
s.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.PagedList<Post> getLinks(PagingParameters pagedListParameters)
pagedListParameters
- the parameters defining the bounds of the list to return.Post
s.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.PagedList<Post> getLinks(String ownerId)
ownerId
- the owner of the feed (could be a user, page, event, etc)Post
s.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.PagedList<Post> getLinks(String ownerId, PagingParameters pagedListParameters)
ownerId
- the owner of the feed (could be a user, page, event, etc)pagedListParameters
- the parameters defining the bounds of the list to return.Post
s.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.PagedList<Post> getPosts()
Post
s.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.PagedList<Post> getPosts(PagingParameters pagedListParameters)
pagedListParameters
- the parameters defining the bounds of the list to return.Post
s.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.PagedList<Post> getPosts(String ownerId)
ownerId
- the owner of the feed (could be a user, page, event, etc)Post
s.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.PagedList<Post> getPosts(String ownerId, PagingParameters pagedListParameters)
ownerId
- the owner of the feed (could be a user, page, event, etc)pagedListParameters
- the parameters defining the bounds of the list to return.Post
s.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.PagedList<Post> getTagged()
Post
s.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.PagedList<Post> getTagged(PagingParameters pagedListParameters)
pagedListParameters
- the parameters defining the bounds of the list to return.Post
s.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.PagedList<Post> getTagged(String ownerId)
ownerId
- the owner of the feed (could be a user, page, event, etc)Post
s.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.PagedList<Post> getTagged(String ownerId, PagingParameters pagedListParameters)
ownerId
- the owner of the feed (could be a user, page, event, etc)pagedListParameters
- the parameters defining the bounds of the list to return.Post
s.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.String updateStatus(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_actions" permission.org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.String postLink(String message, FacebookLink link)
message
- a message to send with the link.link
- the FacebookLink
object to postorg.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_actions" permission.org.springframework.social.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.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_actions" permission.org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.String post(PostData post)
post
- the new postorg.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_actions" permission.org.springframework.social.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.link
- the FacebookLink
object to postorg.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_actions" permission.org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.void deletePost(String id)
id
- the feed entry IDorg.springframework.social.ApiException
- if there is an error while communicating with Facebook.org.springframework.social.InsufficientPermissionException
- if the user has not granted "publish_actions" permission.org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Post> getCheckins()
Post
s for the user, or an empty list if not available.org.springframework.social.ApiException
- if there is an error while communicating with Facebook.org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_checkins" permission.org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Post> getCheckins(PagingParameters pagedListParameters)
pagedListParameters
- the parameters defining the bounds of the list to return.Post
s for the user, or an empty list if not available.org.springframework.social.ApiException
- if there is an error while communicating with Facebook.org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_checkins" permission.org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.Post getCheckin(String checkinId)
checkinId
- the checkin IDPost
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.