public interface FriendService
| Modifier and Type | Method and Description |
|---|---|
void |
addToFriendList(String friendListId,
String friendId)
Adds a friend to a friend list.
|
String |
createFriendList(String name)
Creates a new friend list for the authenticated user.
|
String |
createFriendList(String userId,
String name)
Creates a new friend list.
|
void |
deleteFriendList(String friendListId)
Deletes a friend list.
|
List<FamilyMember> |
getFamily()
Retrieves a list of FamilyMember references for the authenticated user.
|
List<FamilyMember> |
getFamily(String userId)
Retrieves a list of FamilyMember references for the specified user.
|
List<String> |
getFriendIds()
Retrieves a list of the authenticating user's friends' IDs.
|
List<String> |
getFriendIds(String userId)
Retrieves a list of the authenticating user's friends' IDs.
|
Reference |
getFriendList(String friendListId)
Retrieves a reference to the specified friend list.
|
List<Reference> |
getFriendListMembers(String friendListId)
Retrieves references for all users who are members of the specified friend list.
|
List<Reference> |
getFriendLists()
Retrieves a list of custom friend lists belonging to the authenticated user.
|
List<Reference> |
getFriendLists(String userId)
Retrieves a list of custom friend lists belonging to the specified user.
|
List<FacebookProfile> |
getFriendProfiles()
Retrieves profile data for up to 100 of the authenticated user's friends.
|
List<FacebookProfile> |
getFriendProfiles(int offset,
int limit)
Retrieves profile data for the authenticated user's friends.
|
List<FacebookProfile> |
getFriendProfiles(String userId)
Retrieves profile data for up to 100 of the specified user's friends.
|
List<FacebookProfile> |
getFriendProfiles(String userId,
int offset,
int limit)
Retrieves profile data for the specified user's friends.
|
List<Reference> |
getFriends()
Retrieves a list of user references for the authenticated user's friends.
|
List<Reference> |
getFriends(String userId)
Retrieves a list of user references for the specified user's friends.
|
List<Reference> |
getMutualFriends(String userId)
Retrieves a list of user references that the authenticated user and the specified user have in common as friends.
|
List<Reference> |
getSubscribedTo()
Retrieves a list of user reference for the users that the authenticated user is subscribed to.
|
List<Reference> |
getSubscribedTo(String userId)
Retrieves a list of user reference for the users that the specified user is subscribed to.
|
List<Reference> |
getSubscribers()
Retrieves a list of user reference for the users that are subscribed to the authenticated user.
|
List<Reference> |
getSubscribers(String userId)
Retrieves a list of user reference for the users that are subscribed to the specified user.
|
void |
removeFromFriendList(String friendListId,
String friendId)
Removes a friend from a friend list.
|
List<Reference> getFriendLists()
References, each representing a friends list for the user, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "read_friendlists" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Reference> getFriendLists(String userId)
userId - the user's IDReferences, each representing a friends list for the user, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "read_friendlists" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.Reference getFriendList(String friendListId)
friendListId - the friend list ID.Reference to the requested friend list.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Reference> getFriendListMembers(String friendListId)
friendListId - the friend list ID.Reference, each representing a member of the friend list.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.String createFriendList(String name)
name - the name of the friend list.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "manage_friendlists" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.String createFriendList(String userId, String name)
userId - the user ID to create the friend list for.name - the name of the friend list.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "manage_friendlists" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.void deleteFriendList(String friendListId)
friendListId - the ID of the friend list to remove.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "manage_friendlists" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.void addToFriendList(String friendListId, String friendId)
friendListId - the friend list IDfriendId - The ID of the user to add to the list. The user must be a friend of the list's owner.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "manage_friendlists" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.void removeFromFriendList(String friendListId, String friendId)
friendListId - the friend list IDfriendId - The ID of the user to add to the list.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "manage_friendlists" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Reference> getFriends()
References, each representing a friend of the user, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<String> getFriendIds()
ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<FacebookProfile> getFriendProfiles()
FacebookProfiles, each representing a friend of the user, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<FacebookProfile> getFriendProfiles(int offset, int limit)
offset - the offset into the friends list to start retrieving profiles.limit - the maximum number of profiles to return.FacebookProfiles, each representing a friend of the user, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Reference> getFriends(String userId)
userId - the user's IDReferences, each representing a friend of the user, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<String> getFriendIds(String userId)
userId - the user's IDApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<FacebookProfile> getFriendProfiles(String userId)
userId - the user's IDFacebookProfiles, each representing a friend of the user, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<FacebookProfile> getFriendProfiles(String userId, int offset, int limit)
userId - the user's IDoffset - the offset into the friends list to start retrieving profiles.limit - the maximum number of profiles to return.FacebookProfiles, each representing a friend of the user, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<FamilyMember> getFamily()
FamilyMembers, each representing a Facebook user that the user is related to.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<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.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Reference> getMutualFriends(String userId)
userId - the ID of the user to check for common friendships with.References, each representing a friend that the two users have in common.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Reference> getSubscribedTo()
References, each representing a Facebook user that the user is subscribed to.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Reference> getSubscribedTo(String userId)
userId - the ID of the user to fetch subscriptions for.References, each representing a Facebook user that the user is subscribed to.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Reference> getSubscribers()
References, each representing a Facebook user that the user is subscribed to.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Reference> getSubscribers(String userId)
userId - the ID of the user to fetch subscriptions for.References, each representing a Facebook user that the user is subscribed to.ApiException - 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.