public interface FriendOperations
| Modifier and Type | Method and Description |
|---|---|
PagedList<FamilyMember> |
getFamily()
Retrieves a list of FamilyMember references for the authenticated user.
|
PagedList<FamilyMember> |
getFamily(String userId)
Retrieves a list of FamilyMember references for the specified user.
|
PagedList<String> |
getFriendIds()
Retrieves a list of the authenticating user's friends' IDs.
|
PagedList<String> |
getFriendIds(String userId)
Retrieves a list of the authenticating user's friends' IDs.
|
FriendList |
getFriendList(String friendListId)
Retrieves a reference to the specified friend list.
|
PagedList<FriendList> |
getFriendLists()
Retrieves a list of custom friend lists belonging to the authenticated user.
|
PagedList<User> |
getFriendProfiles()
Retrieves the profile data for all of an authenticated user's friends.
|
PagedList<User> |
getFriendProfiles(PagingParameters pagedListParameters)
Retrieves profile data for the authenticated user's friends.
|
PagedList<User> |
getFriendProfiles(String userId)
Retrieves profile data for all of an authenticated user's friends.
|
PagedList<User> |
getFriendProfiles(String userId,
PagingParameters pagedListParameters)
Retrieves profile data for the specified user's friends.
|
PagedList<Reference> |
getFriends()
Retrieves a list of user references for the authenticated user's friends.
|
PagedList<Reference> |
getFriends(String userId)
Retrieves a list of user references for the specified user's friends.
|
PagedList<UserInvitableFriend> |
getInvitableFriends()
Retrieves a list of the authenticated user's friends that can be invited.
|
PagedList<UserTaggableFriend> |
getTaggableFriends()
Retrieves a list of the authenticated user's friends that can be tagged in a post.
|
PagedList<FriendList> getFriendLists()
References, each representing a friends list 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 "read_custom_friendlists" permission.org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.FriendList getFriendList(String friendListId)
friendListId - the friend list ID.Reference to the requested friend list.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<Reference> getFriends()
References, each representing a friend of 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.MissingAuthorizationException - if FacebookTemplate was not created with an access token.PagedList<String> getFriendIds()
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<User> getFriendProfiles()
Users, each representing a friend of 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.MissingAuthorizationException - if FacebookTemplate was not created with an access token.PagedList<User> getFriendProfiles(PagingParameters pagedListParameters)
pagedListParameters - the parameters defining the bounds of the list to return.Users, each representing a friend of 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.MissingAuthorizationException - if FacebookTemplate was not created with an access token.PagedList<Reference> getFriends(String userId)
userId - the user's IDReferences, each representing a friend of 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.MissingAuthorizationException - if FacebookTemplate was not created with an access token.PagedList<String> getFriendIds(String userId)
userId - the user's IDorg.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<User> getFriendProfiles(String userId)
userId - the user's IDUsers, each representing a friend of 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.MissingAuthorizationException - if FacebookTemplate was not created with an access token.PagedList<User> getFriendProfiles(String userId, PagingParameters pagedListParameters)
userId - the user's IDpagedListParameters - the parameters defining the bounds of the list to return.Users, each representing a friend of 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.MissingAuthorizationException - if FacebookTemplate was not created with an access token.PagedList<FamilyMember> getFamily()
FamilyMembers, each representing a Facebook user that the user is related to.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<FamilyMember> getFamily(String userId)
userId - the ID of the user to retrieve family members for.FamilyMembers, each representing a Facebook user that the user is related to.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<UserInvitableFriend> getInvitableFriends()
PagedList<UserTaggableFriend> getTaggableFriends()