Developers » API methods » Likes » likes.isLiked
Likeslikes.isLiked
Checks for the object in the Likes list of the specified user.
This method can be called with a user token.
Parameters
user_idUser ID.
positive number, current user id is used by default
typeObject type. Possible values:
  • post post on user or community wall;
  • comment comment on a wall post;
  • photo photo;
  • video video;
  • note note;
  • market product;
  • photo_comment comment to the photo;
  • video_comment comment to the video;
  • topic_comment comment in the discussion;
  • market_comment comment to the product;
  • sitepage page of the site where the Like widget is installed.
string, required parameter
owner_idID of the user or community that owns the object. Use a negative value to designate a community ID.
int (number), current user id is used by default
item_idObject ID.
positive number, required parameter
Result
Returns an object containing the following fields:
  • liked the user added the object to theirLikes list (1 if added).
  • copied the user made a repost (1 if made).

Errors
30This profile is private
Global errors can occur while running. See their descriptions on this page.
Version historyShow all
4.103
New response format, object with liked and copied fields.
Affects methods likes.isLiked