photos.getComments
Returns a list of comments on a photo.
Parameters
string
ID of the user or community that owns the photo.
integer
Photo ID.
Required parameter
checkbox
1 — to return an additional likes field 0 — (default)
positive
integer
Offset needed to return a specific subset of comments. By default, 0.
positive
Number of comments to return.
positive
positive
string
Sort order: asc — old first desc — new first
string
checkbox
string
Result
Returns a list of comment objects.
If need_likes is set to 1, returns an additional likes field containing the following subfields:
- •count — Number of users who liked the comment.
- •user_likes — Whether the current user liked the comment (0 — not liked, 1 — liked).
- •can_like — Whether the current user can like the comment (0 — cannot, 1 — can).
Error codes
Common errors may occur during execution
Linked versions
Go to API versions pageIn the methods wall.getComments, market.getComments, , , board.getComments, graffiti now has a separate attach type.
Methods market.add, market.edit can be passed the parameter url. The market object can now return url and button_title.
- •
In return objects that describe community , появилось новое поле
is_messages_blocked. - •
В Callback API Added new events:
message_allowandmessage_deny. Методgroups.setCallbackSettingstwo new parameters, and the methodgroups.getCallbackSettingsreturns two new fields, respectively.
If no end date is specified in the method call parameters, return objects that describe community They no longer have a field.. finish_data . Previously, this field was present in the response and contained the default, equal to start_date + 2 hours.
can_message, ban_info, can_post, can_upload_doc, can_upload_video, can_see_all_posts, can_create_topic, is_favorite, is_hidden_from_feed fields in a community object are returned for the requests including access_token only.
A parameter has been added to the methods that return comments start_comment_id , which indicates the initial comment for a return.
Comments format changed, all methods returns them in the same way now