public interface GroupService
| Modifier and Type | Method and Description |
|---|---|
Group |
getGroup(String groupId)
Retrieve data for a specified group.
|
byte[] |
getGroupImage(String groupId)
Retrieves a group's image as an array of bytes.
|
byte[] |
getGroupImage(String groupId,
ImageType imageType)
Retrieves a group's image as an array of bytes.
|
List<FacebookProfile> |
getMemberProfiles(String groupId)
Retrieves the profiles for the members of the specified group.
|
List<GroupMemberReference> |
getMembers(String groupId)
Retrieves the members of the specified group.
|
List<GroupMembership> |
getMemberships()
Retrieves a list of group memberships for the authenticated user.
|
List<GroupMembership> |
getMemberships(String userId)
Retrieves a list of group memberships for a specific user.
|
List<Group> |
search(String query)
Search for groups.
|
List<Group> |
search(String query,
int offset,
int limit)
Search for groups.
|
Group getGroup(String groupId)
groupId - the ID of the groupGroup objectApiException - if there is an error while communicating with Facebook.byte[] getGroupImage(String groupId)
groupId - the group IDApiException - if there is an error while communicating with Facebook.byte[] getGroupImage(String groupId, ImageType imageType)
groupId - the group IDimageType - the image type (eg., small, normal, large. square)ApiException - if there is an error while communicating with Facebook.List<GroupMemberReference> getMembers(String groupId)
groupId - the ID of the groupReferences, one for each member of the group.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<FacebookProfile> getMemberProfiles(String groupId)
groupId - the ID of the groupFacebookProfiles, one for each member of the group.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<GroupMembership> getMemberships()
GroupMemberships, one for each group the user is a member of.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.InsufficientPermissionException - if the user has not granted "user_groups" permission.List<GroupMembership> getMemberships(String userId)
userId - the user ID to retrieve memberships for.GroupMemberships, one for each group the user is a member of.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.InsufficientPermissionException - if the user has not granted "user_groups" or "friends_groups" permission.List<Group> search(String query)
query - the search query (e.g., "Spring User Group")Groups matching the search queryApiException - if there is an error while communicating with Facebook.List<Group> search(String query, int offset, int limit)
query - the search query (e.g., "Spring User Group")offset - the offset into the matching groups listlimit - the maximum number of groups to returnGroups matching the search queryApiException - if there is an error while communicating with Facebook.Copyright © 2011-2013 Seam Framework. All Rights Reserved.