Returns comment threads that the current user has participated in.

The objects are ordered by the time of the most recent comment.

This method requires the following permissions: newsfeed.

Parameters

filters
string

Which types of commentable objects to return, comma-separated string:

  • post — wall posts
  • photo — photos
  • board — discussion board topics

By default, all types are returned.

offset
integer (non-negative)

Offset into the list of objects.

count
integer (1..100)

How many objects to return.

By default 25.

last_comments
integer (0..3)

How many of the most recent comments to return.

By default 0.

comment_view_type
enum

How to structure the comments for last_comments. By default uses the user preference.

Possible values: threaded, two_level, flat.

Result

An object:

items
array of objects

The commentable objects themselves.

type
enum

Possible values: post, photo, board.

post
wall post

When type is post, a wall post object.

photo
Photo

When type is photo, a photo object.

topic
board topic

When type is board, a topic object.

comments
array

If last_comments is non-zero, an array of wall post objects (if this is a wall post) or comment objects (in all other cases).

profiles
array of users

User objects relevant to these objects.

groups
array of groups

Group objects relevant to these objects.

count
integer (non-negative)

How many comment threads there are in total.

Errors

Global errors may occur when calling this method.