newsfeed.getComments
This method is outdated and may be disabled after some time. Please avoid using it.
Parameters
string
Value obtained in the new_from field from the last loaded news. It prevents duplicate news during auto feed.
positive
Number of comments to return. For auto feed, you can use the new_offset parameter returned by this method.
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
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.)
positive
Earliest timestamp (in Unix time) of a comment to return. By default, 24 hours ago.
positive
Latest timestamp (in Unix time) of a comment to return. By default, the current time.
checkbox
1 — to return last comments on posts
positive
Number of comments to each entry to return.
string
Identificator needed to return the next oage with results. Value for this parameter returns in next_from field.
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- •
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.
- •
При использовании параметра 'photo_sizes' метод
photos.saveOwnerPhotoReturn links to all dimensions of the photo. - •
Method
newsfeed.getCommentssupports the parameterlast_comments_countwhich indicates how many comments to the records need to be returned. - •
Parameter
filtermethodgroups.getMembersIt now supports the importanceunsure. Его можно использовать для получения информации о возможны?1?… участника?1?… мероприятия, то есть тех, кто выбра?1?»« ?1?’озможно пойду».
- •
In the object describing the user , поля
photoandphoto_medium_recrenamed tophoto_50andphoto_100. - •