friends.areFriends
Checks the current user's friendship status with other specified users.
Parameters
integer
IDs of the users whose friendship status to check.
Required parameter
checkbox
1 — to return sign field where sign is:
md5("{id}_{user_id}_{friends_status}_{application_secret}")</blockquote>where id is current user ID. This field allows to check that data has not been modified by the client.
By default: 0.
checkbox
1 – is_request_unread needs to be returned if there’s an unread friend request.
Result
Returns an array of status objects with the following fields:
- •user_id — user id (from those passed in the user_ids parameter);
- •friend_status — friendship status with the user:
- •0 — the user is not a friend;
- •1 — a friend request was sent to the user;
- •2 — there is an incoming friend request from the user;
- •3 — the user is a friend.
- •
- •is_request_unread — whether or not there’s an unread friend request from a user (“true” if there is, “false” or none if there’s no friend request), only returned if passing the parameters extended and friend_status = 2
Error codes
Common errors may occur during execution
Linked versions
Go to API versions page- •
In method
newsfeed.searchadded parameterextended, which returns the full results with all the necessary community and user data. - •
In the method
friends.areFriendsAltered field generation algorithmsign. Now he takes into accountidthe user. - •
Objects in the array
noteswhich returns methodsnewsfeed.getandnewsfeed.getRecommeded, now contain fieldsidandcomments.