public interface UserOperations
Modifier and Type | Field and Description |
---|---|
static String[] |
PROFILE_FIELDS |
Modifier and Type | Method and Description |
---|---|
List<UserIdForApp> |
getIdsForBusiness()
Fetches IDs that the user has on any applications associated with the calling application via Facebook's Business Mapping API.
|
List<PlaceTag> |
getTaggedPlaces()
Fetches a list of places that the user has checked into or has been tagged at.
|
List<Permission> |
getUserPermissions()
Retrieves a list of permissions that the application has been granted for the authenticated user.
|
User |
getUserProfile()
Retrieves the profile for the authenticated user.
|
User |
getUserProfile(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(Integer width,
Integer height)
Retrieves the user's profile image.
|
byte[] |
getUserProfileImage(String userId)
Retrieves the user's profile image.
|
byte[] |
getUserProfileImage(String userId,
ImageType imageType)
Retrieves the user's profile image.
|
byte[] |
getUserProfileImage(String userId,
Integer width,
Integer height)
Retrieves the user's profile image.
|
PagedList<Reference> |
search(String query)
Searches for users.
|
static final String[] PROFILE_FIELDS
User getUserProfile()
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.User getUserProfile(String userId)
userId
- the Facebook user ID to retrieve profile data for.org.springframework.social.ApiException
- if there is an error while communicating with Facebook.byte[] getUserProfileImage()
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.byte[] getUserProfileImage(String userId)
userId
- the Facebook user ID.org.springframework.social.ApiException
- if there is an error while communicating with Facebook.byte[] getUserProfileImage(ImageType imageType)
imageType
- the image type (eg., small, normal, large. square)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.byte[] getUserProfileImage(String userId, ImageType imageType)
userId
- the Facebook user ID.imageType
- the image type (eg., small, normal, large. square)org.springframework.social.ApiException
- if there is an error while communicating with Facebook.byte[] getUserProfileImage(Integer width, Integer height)
width
- the desired image widthheight
- the desired image heightorg.springframework.social.ApiException
- if there is an error while communicating with Facebook.byte[] getUserProfileImage(String userId, Integer width, Integer height)
userId
- the Facebook user ID.width
- the desired image widthheight
- the desired image heightorg.springframework.social.ApiException
- if there is an error while communicating with Facebook.List<Permission> getUserPermissions()
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.List<UserIdForApp> getIdsForBusiness()
List<PlaceTag> getTaggedPlaces()
PagedList<Reference> search(String query)
query
- the search query (e.g., "Michael Scott")Reference
s, each representing a user who matched the given query.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.