org.springframework.social.facebook.api
Interface GroupOperations


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.
 

Method Detail

getGroup

Group getGroup(java.lang.String groupId)
Retrieve data for a specified group.

Parameters:
groupId - the ID of the group
Returns:
a Group object

getGroupImage

byte[] getGroupImage(java.lang.String groupId)
Retrieves a group's image as an array of bytes. Returns the image in Facebook's "normal" type.

Parameters:
groupId - the group ID
Returns:
an array of bytes containing the group's image.

getGroupImage

byte[] getGroupImage(java.lang.String groupId,
                     ImageType imageType)
Retrieves a group's image as an array of bytes.

Parameters:
groupId - the group ID
imageType - the image type (eg., small, normal, large. square)
Returns:
an array of bytes containing the group's image.

getMembers

java.util.List<GroupMemberReference> getMembers(java.lang.String groupId)
Retrieves the members of the specified group.

Parameters:
groupId - the ID of the group
Returns:
a list of References, one for each member of the group.

getMemberProfiles

java.util.List<FacebookProfile> getMemberProfiles(java.lang.String groupId)
Retrieves the profiles for the members of the specified group.

Parameters:
groupId - the ID of the group
Returns:
a list of FacebookProfiles, one for each member of the group.