org.springframework.social.facebook.api
Interface UserOperations


public interface UserOperations


Method Summary
 FacebookProfile getUserProfile()
          Retrieves the profile for the authenticated user.
 FacebookProfile getUserProfile(java.lang.String userId)
          Retrieves the profile for the specified user.
 byte[] getUserProfileImage()
          Retrieves the user's profile image.
 byte[] getUserProfileImage(ImageType imageType)
          Retrieves the user's profile image.
 byte[] getUserProfileImage(java.lang.String userId)
          Retrieves the user's profile image.
 byte[] getUserProfileImage(java.lang.String userId, ImageType imageType)
          Retrieves the user's profile image.
 

Method Detail

getUserProfile

FacebookProfile getUserProfile()
Retrieves the profile for the authenticated user.

Returns:
the user's profile information.

getUserProfile

FacebookProfile getUserProfile(java.lang.String userId)
Retrieves the profile for the specified user.

Parameters:
userId - the Facebook user ID to retrieve profile data for.
Returns:
the user's profile information.

getUserProfileImage

byte[] getUserProfileImage()
Retrieves the user's profile image. Returns the image in Facebook's "normal" type.

Returns:
an array of bytes containing the user's profile image.

getUserProfileImage

byte[] getUserProfileImage(java.lang.String userId)
Retrieves the user's profile image. Returns the image in Facebook's "normal" type.

Parameters:
userId - the Facebook user ID.
Returns:
an array of bytes containing the user's profile image.

getUserProfileImage

byte[] getUserProfileImage(ImageType imageType)
Retrieves the user's profile image.

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

getUserProfileImage

byte[] getUserProfileImage(java.lang.String userId,
                           ImageType imageType)
Retrieves the user's profile image.

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