Checks whether a user likes an object.

This method can be called without an access token.

Parameters

user_id
integer (positive)

The user identifier for which the like needs to be checked.

By default, the current user.

type
enum

Object type.

  • photo – Photo
  • photo_comment – A comment on a photo
  • post – Wall post or comment
  • topic_comment – A comment in a discussion board topic
item_id
string

Identifier of the target object.

Result

An object:

liked
boolean

Whether the user likes this object.

reposted
boolean

Whether the user has reposted this post or comment.

Errors

Global errors may occur when calling this method.