|
Spring Social Facebook | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserOperations
Method Summary | |
---|---|
java.util.List<java.lang.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(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. |
java.util.List<Reference> |
search(java.lang.String query)
Searches for users. |
Method Detail |
---|
FacebookProfile 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.FacebookProfile getUserProfile(java.lang.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(java.lang.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(java.lang.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.java.util.List<java.lang.String> 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.java.util.List<Reference> search(java.lang.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.
|
Spring Social Facebook | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |