public interface UserService
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getUserPermissions()
Retrieves a list of permissions that the application has been granted for the authenticated user.
|
FacebookProfile |
getUserProfile()
Retrieves the profile for the authenticated user.
|
FacebookProfile |
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(String userId)
Retrieves the user's profile image.
|
byte[] |
getUserProfileImage(String userId,
ImageType imageType)
Retrieves the user's profile image.
|
List<Reference> |
search(String query)
Searches for users.
|
FacebookProfile getUserProfile()
ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.FacebookProfile getUserProfile(String userId)
userId - the Facebook user ID to retrieve profile data for.ApiException - if there is an error while communicating with Facebook.byte[] getUserProfileImage()
ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.byte[] getUserProfileImage(String userId)
userId - the Facebook user ID.ApiException - if there is an error while communicating with Facebook.byte[] getUserProfileImage(ImageType imageType)
imageType - the image type (eg., small, normal, large. square)ApiException - if there is an error while communicating with Facebook.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)ApiException - if there is an error while communicating with Facebook.List<String> getUserPermissions()
ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Reference> search(String query)
query - the search query (e.g., "Michael Scott")References, each representing a user who matched the given query.ApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.Copyright © 2011-2013 Seam Framework. All Rights Reserved.