newsfeed

newsfeed.getComments

This method is outdated and may be disabled after some time. Please avoid using it.

To call this method, you can use:
• user access token obtained in the standalone app through Implicit Flow (access right required: wall — this is issued in exceptional cases by a request to support at devsupport@corp.vk.com)

Parameters

from

string

Value obtained in the new_from field from the last loaded news. It prevents duplicate news during auto feed.

count

positive

Number of comments to return. For auto feed, you can use the new_offset parameter returned by this method.

filters

string

Filters to apply: post — new comments on wall posts photo — new comments on photos video — new comments on videos topic — new comments on discussions note — new comments on notes

reposts

string

Object ID, comments on repost of which shall be returned, e.g. wall1_45486. (If the parameter is set, the filters parameter is optional.)

start_time

positive

Earliest timestamp (in Unix time) of a comment to return. By default, 24 hours ago.

end_time

positive

Latest timestamp (in Unix time) of a comment to return. By default, the current time.

last_comments

checkbox

1 — to return last comments on posts

last_comments_count

positive

Number of comments to each entry to return.

start_from

string

Identificator needed to return the next oage with results. Value for this parameter returns in next_from field.

fields

string

Additional fields of profiles and communities to return.

Result

Returns an object containing the following fields:

  • items — News array for the current user.
  • profiles — Information about users in the newsfeed.
  • groups — Information about communities in the newsfeed.

Items field description

Contains an array of wall objects, as well as the following fields:

  • type — Type of newsfeed, based on the specified filters (e.g., post, photo).
  • source_id — ID of the news source (positive number signifies a user; negative number signifies a community).
  • post_id — Post ID on the owner wall.
  • photos, photo_tags, notes, friends — Information about the count of objects of corresponding types (except wall posts) and up to the last 5 objects related to the current news.

Each array element in the photos and photo_tags fields contains:

  • pid — Photo ID.
  • owner_id — Photo owner ID.
  • aid — Photo album ID.
  • src — URL of the preview image.
  • src_big — URL of the full-size image.

Each array element in the notes field contains:

  • nid — Note ID.
  • owner_id — Note owner ID.
  • title — Note title.
  • ncom — Number of note comments.

Each array element in the friends field contains:

  • uid — User ID.

Profiles field description

Contains an array of user objects, as well as the following fields:

  • photo — URL of the 50x50px user photo.
  • photo_medium_rec — URL of the 100x100px user photo.

Groups field description

Contains an array of community objects with information about communities found in news.

Error codes

Common errors may occur during execution

Linked versions

Go to API versions page

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.

  • При использовании параметра 'photo_sizes' метод photos.saveOwnerPhoto Return links to all dimensions of the photo.

  • Method newsfeed.getComments supports the parameter last_comments_count which indicates how many comments to the records need to be returned.

  • Parameter filter method groups.getMembers It now supports the importance unsure . Его можно использовать для получения информации о возможны?1?… участника?1?… мероприятия, то есть тех, кто выбра?1?»« ?1?’озможно пойду».

  • In the object describing the user , поля photo and photo_medium_rec renamed to photo_50 and photo_100 .

  • In the investment wall in field messages from and copy_owner Return the object user or community instead of an array.