|
Spring Social Facebook | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GroupOperations
Defines operations for retrieving data about groups and group members.
Method Summary | |
---|---|
Group |
getGroup(java.lang.String groupId)
Retrieve data for a specified group. |
byte[] |
getGroupImage(java.lang.String groupId)
Retrieves a group's image as an array of bytes. |
byte[] |
getGroupImage(java.lang.String groupId,
ImageType imageType)
Retrieves a group's image as an array of bytes. |
java.util.List<FacebookProfile> |
getMemberProfiles(java.lang.String groupId)
Retrieves the profiles for the members of the specified group. |
java.util.List<GroupMemberReference> |
getMembers(java.lang.String groupId)
Retrieves the members of the specified group. |
java.util.List<GroupMembership> |
getMemberships()
Retrieves a list of group memberships for the authenticated user. |
java.util.List<GroupMembership> |
getMemberships(java.lang.String userId)
Retrieves a list of group memberships for a specific user. |
java.util.List<Group> |
search(java.lang.String query)
Search for groups. |
java.util.List<Group> |
search(java.lang.String query,
int offset,
int limit)
Search for groups. |
Method Detail |
---|
Group getGroup(java.lang.String groupId)
groupId
- the ID of the group
Group
object
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.byte[] getGroupImage(java.lang.String groupId)
groupId
- the group ID
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.byte[] getGroupImage(java.lang.String groupId, ImageType imageType)
groupId
- the group IDimageType
- the image type (eg., small, normal, large. square)
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.java.util.List<GroupMemberReference> getMembers(java.lang.String groupId)
groupId
- the ID of the group
Reference
s, one for each member of the group.
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<FacebookProfile> getMemberProfiles(java.lang.String groupId)
groupId
- the ID of the group
FacebookProfile
s, one for each member of the group.
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<GroupMembership> getMemberships()
GroupMembership
s, one for each group the user is a member of.
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.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_groups" permission.java.util.List<GroupMembership> getMemberships(java.lang.String userId)
userId
- the user ID to retrieve memberships for.
GroupMembership
s, one for each group the user is a member of.
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.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_groups" or "friends_groups" permission.java.util.List<Group> search(java.lang.String query)
query
- the search query (e.g., "Spring User Group")
Group
s matching the search query
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.java.util.List<Group> search(java.lang.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 return
Group
s matching the search query
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
|
Spring Social Facebook | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |