Notifications.markRead
From Facebook Developer Wiki
Contents |
Description
This method marks one or more notifications as read. You return the notifications by calling notifications.getList or querying the notification FQL table.
Applications must pass a valid session key, and can only mark the notifications of the current session user.
Parameters
| Required | Name | Type | Description | |
| required | session_key | string | The session key of the logged in user. The session key is automatically included by our PHP client. Applications must pass a valid session key. | |
|---|---|---|---|---|
| notification_ids | array | The IDs of the notifications to mark as read, as retrieved via the notification FQL table or the notifications.getList API method. This is a comma-separated list. |
Example Requests
$facebook->api_client->notifications_markRead("<notification_id1>,<notification_id2>");
Response
This method returns true on success, or false or an error code if it fails.
Error Codes
| Code | Description | |
| 100 | Invalid parameter. | |
|---|---|---|
| 102 | Session key invalid or no longer valid (if it's a desktop application and the session is missing). |
