Likes an object on behalf of the current user.

This method requires the following permissions: likes.

Parameters

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 object to be liked.

Result

An object:

likes
integer (non-negative)

The new number of likes on the target object.

Errors

Global errors may occur when calling this method.