Returns the current user’s notifications.
This method requires the following permissions: notifications.
Parameters
Offset into the list of notifications for pagination.
How many notifications to return.
By default 50.
The identifier of the most recent notification known to the client. Use this to get a consistent view of the list even if new notifications were added between requests for subsequent pages.
Result
An object:
Notifications themselves.
Identifier of this notification. The newer the notification, the greater the identifier.
Notification type.
Notifications of types like, repost, invite_signup, friend_accept, and follow are grouped together within a day and use user_ids. The other types are a single notification per action.
comment– Someone commented on a piece of content created by the current userreply– Someone replied to a current user’s commentmention– Someone mentioned the current userrepost– Someone reposted a current user’s post or commentlike– Someone liked a piece of content created by the current userwall_post– Someone posted on the current user’s wallinvite_signup– Someone signed up using an invitation from the current userfollow– Someone started following the current userfriend_accept– Someone accepted a current user’s friend request
For groupable notifications: information about users that did the action determined by type.
How many users there are total.
Identifiers of the most recent 10 users.
For non-groupable notifications: the identifier of the user that did the action determined by type.
The time (in unixtime) when this notification was created.
For notifications of types comment, reply, mention, wall_post: the post or comment object that this notification is about.
The type of the object.
Possible values:
wall_post,
wall_comment,
comment.
If type is wall_post, the post.
If type is wall_comment, the comment.
If type is comment, the comment.
For comment: the current user’s object that on which someone commented.
For reply: the current user’s comment to which someone replied.
For like: the current user’s object that someone liked.
For repost: the current user’s wall post or comment that someone reposted.
The type of the object.
Possible values:
wall_post,
wall_comment,
comment,
photo.
If type is wall_post, the post.
If type is wall_comment, the comment.
If type is comment, the comment.
If type is photo, the photo.
For like and repost of a comment, and for reply: the parent object for the entire comment thread.
The type of the object.
Possible values:
wall_post,
photo,
board_topic.
If type is wall_post, the post.
If type is photo, the photo.
If type is board_topic, the topic.
User objects relevant to these notifications.
Group objects relevant to these notifications.
The identifier of the most recent notification seen by the user.