public interface FriendMethods
| Modifier and Type | Method and Description |
|---|---|
boolean |
addFriendlistMember(java.lang.String friendlistId,
java.lang.String userId)
Adds a user to the friend list.
|
java.lang.String |
createFriendlist(java.lang.String friendlistName)
Creates the friend list for the current user.
|
java.lang.String |
createFriendlist(java.lang.String userId,
java.lang.String friendlistName)
Creates the friend list for a user.
|
boolean |
deleteFriendlist(java.lang.String friendlistId)
Deletes the friend list.
|
boolean |
deleteFriendlistMember(java.lang.String friendlistId,
java.lang.String userId)
This method is an alias of:
removeFriendlistMember(String, String) . |
ResponseList<Friend> |
getBelongsFriend(java.lang.String friendId)
Returns the friend if the current user friends with.
|
ResponseList<Friend> |
getBelongsFriend(java.lang.String friendId,
Reading reading)
Returns the friend if the current user friends with.
|
ResponseList<Friend> |
getBelongsFriend(java.lang.String userId,
java.lang.String friendId)
Returns the friend if a user friends with.
|
ResponseList<Friend> |
getBelongsFriend(java.lang.String userId,
java.lang.String friendId,
Reading reading)
Returns the friend if a user friends with.
|
Friendlist |
getFriendlist(java.lang.String friendlistId)
Returns a single friend list.
|
Friendlist |
getFriendlist(java.lang.String friendlistId,
Reading reading)
Returns a single friend list.
|
ResponseList<Friend> |
getFriendlistMembers(java.lang.String friendlistId)
Returns all of the users who are members of this list.
|
ResponseList<Friendlist> |
getFriendlists()
Returns the current user's friend lists.
|
ResponseList<Friendlist> |
getFriendlists(Reading reading)
Returns the current user's friend lists.
|
ResponseList<Friendlist> |
getFriendlists(java.lang.String userId)
Returns the user's friend lists.
|
ResponseList<Friendlist> |
getFriendlists(java.lang.String userId,
Reading reading)
Returns the user's friend lists.
|
ResponseList<FriendRequest> |
getFriendRequests()
Returns the current user's incoming friend requests.
|
ResponseList<FriendRequest> |
getFriendRequests(Reading reading)
Returns the current user's incoming friend requests.
|
ResponseList<FriendRequest> |
getFriendRequests(java.lang.String userId)
Returns the user's incoming friend requests.
|
ResponseList<FriendRequest> |
getFriendRequests(java.lang.String userId,
Reading reading)
Returns the user's incoming friend requests.
|
ResponseList<Friend> |
getFriends()
Returns the current user's friends.
|
ResponseList<Friend> |
getFriends(Reading reading)
Returns the current user's friends.
|
ResponseList<Friend> |
getFriends(java.lang.String userId)
Returns a user's friends.
|
ResponseList<Friend> |
getFriends(java.lang.String userId,
Reading reading)
Returns a user's friends.
|
ResponseList<Friend> |
getMutualFriends(java.lang.String friendUserId)
Returns the mutual friends between the current user and friend.
|
ResponseList<Friend> |
getMutualFriends(java.lang.String friendUserId,
Reading reading)
Returns the mutual friends between the current user and friend.
|
ResponseList<Friend> |
getMutualFriends(java.lang.String userId1,
java.lang.String userId2)
Returns the mutual friends between two users.
|
ResponseList<Friend> |
getMutualFriends(java.lang.String userId1,
java.lang.String userId2,
Reading reading)
Returns the mutual friends between two users.
|
ResponseList<TaggableFriend> |
getTaggableFriends()
Returns the list of friends of the current user.
|
ResponseList<TaggableFriend> |
getTaggableFriends(Reading reading)
Returns the list of friends of the current user.
|
ResponseList<TaggableFriend> |
getTaggableFriends(java.lang.String userId)
Returns the list of friends of the current user.
|
ResponseList<TaggableFriend> |
getTaggableFriends(java.lang.String userId,
Reading reading)
Returns the list of friends of the current user.
|
boolean |
removeFriendlistMember(java.lang.String friendlistId,
java.lang.String userId)
Removes the user from a friend list.
|
ResponseList<Friend> getFriends() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<Friend> getFriends(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Friend> getFriends(java.lang.String userId) throws FacebookException
userId - the ID of a userFacebookException - when Facebook service or network is unavailableResponseList<Friend> getFriends(java.lang.String userId, Reading reading) throws FacebookException
userId - the ID of a userreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Friend> getBelongsFriend(java.lang.String friendId) throws FacebookException
friendId - the ID of the friendFacebookException - when Facebook service or network is unavailableResponseList<Friend> getBelongsFriend(java.lang.String friendId, Reading reading) throws FacebookException
friendId - the ID of the friendreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Friend> getBelongsFriend(java.lang.String userId, java.lang.String friendId) throws FacebookException
userId - the ID of a userfriendId - the ID of the friendFacebookException - when Facebook service or network is unavailableResponseList<Friend> getBelongsFriend(java.lang.String userId, java.lang.String friendId, Reading reading) throws FacebookException
userId - the ID of a userfriendId - the ID of the friendreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Friendlist> getFriendlists() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<Friendlist> getFriendlists(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Friendlist> getFriendlists(java.lang.String userId) throws FacebookException
userId - the ID of a userFacebookException - when Facebook service or network is unavailableResponseList<Friendlist> getFriendlists(java.lang.String userId, Reading reading) throws FacebookException
userId - the ID of a userreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailablejava.lang.String createFriendlist(java.lang.String friendlistName)
throws FacebookException
friendlistName - friend list nameFacebookException - when Facebook service or network is unavailablejava.lang.String createFriendlist(java.lang.String userId,
java.lang.String friendlistName)
throws FacebookException
userId - the ID of a userfriendlistName - friend list name. Maximum 25 charactersFacebookException - when Facebook service or network is unavailableFriendlist getFriendlist(java.lang.String friendlistId) throws FacebookException
friendlistId - the ID of the friend listFacebookException - when Facebook service or network is unavailableFriendlist getFriendlist(java.lang.String friendlistId, Reading reading) throws FacebookException
friendlistId - the ID of the friend listreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableboolean deleteFriendlist(java.lang.String friendlistId)
throws FacebookException
friendlistId - the ID of the friend listFacebookException - when Facebook service or network is unavailableResponseList<Friend> getFriendlistMembers(java.lang.String friendlistId) throws FacebookException
friendlistId - the ID of the friend listFacebookException - when Facebook service or network is unavailableboolean addFriendlistMember(java.lang.String friendlistId,
java.lang.String userId)
throws FacebookException
friendlistId - the ID of the friend listuserId - the ID of target userFacebookException - when Facebook service or network is unavailableboolean removeFriendlistMember(java.lang.String friendlistId,
java.lang.String userId)
throws FacebookException
friendlistId - the ID of a friend listuserId - the ID of a target userFacebookException - when Facebook service or network is unavailableboolean deleteFriendlistMember(java.lang.String friendlistId,
java.lang.String userId)
throws FacebookException
removeFriendlistMember(String, String) .friendlistId - the ID of a friend listuserId - the ID of a target userFacebookException - when Facebook service or network is unavailableResponseList<FriendRequest> getFriendRequests() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<FriendRequest> getFriendRequests(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<FriendRequest> getFriendRequests(java.lang.String userId) throws FacebookException
userId - the ID of a userFacebookException - when Facebook service or network is unavailableResponseList<FriendRequest> getFriendRequests(java.lang.String userId, Reading reading) throws FacebookException
userId - the ID of a userreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Friend> getMutualFriends(java.lang.String friendUserId) throws FacebookException
friendUserId - the ID of a friendFacebookException - when Facebook service or network is unavailableResponseList<Friend> getMutualFriends(java.lang.String friendUserId, Reading reading) throws FacebookException
friendUserId - the ID of a friendreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Friend> getMutualFriends(java.lang.String userId1, java.lang.String userId2) throws FacebookException
userId1 - the ID of a useruserId2 - the ID of a userFacebookException - when Facebook service or network is unavailableResponseList<Friend> getMutualFriends(java.lang.String userId1, java.lang.String userId2, Reading reading) throws FacebookException
userId1 - the ID of a useruserId2 - the ID of a userreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<TaggableFriend> getTaggableFriends() throws FacebookException
FacebookException - when Facebook service or network is unavailable, and when taggable friends feature requires app reviewResponseList<TaggableFriend> getTaggableFriends(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailable,and when taggable friends feature requires app reviewResponseList<TaggableFriend> getTaggableFriends(java.lang.String userId) throws FacebookException
userId - the ID of a userFacebookException - when Facebook service or network is unavailable, and when taggable friends feature requires app reviewResponseList<TaggableFriend> getTaggableFriends(java.lang.String userId, Reading reading) throws FacebookException
userId - the ID of a userreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailable,and when taggable friends feature requires app review