Dashboard.getNews
From Facebook Developer Wiki
Contents |
Description
This method retrieves the current news message being shown to the user. We do not require an active session with the user to do this.
Parameters
| Required | Name | Type | Description | |
| required | api_key | string | The application key associated with the calling application. If you specify the API key in your client, you don't need to pass it with every call. | |
|---|---|---|---|---|
| call_id | float | The request's sequence number. Each successive call for any session must use a sequence number greater than the last. We suggest using the current time in milliseconds, such as PHP's microtime(true) function. If you specify the call ID in your client, you don't need to pass it with every call. | ||
| sig | string | An MD5 hash of the current request and your secret key, as described in the How Facebook Authenticates Your Application. Facebook computes the signature for you automatically. | ||
| v | string | This must be set to 1.0 to use this version of the API. If you specify the version in your client, you don't need to pass it with every call. | ||
| uid | int | uid int The user ID of the person to receive the message. |
Example Requests
Getting a User's News
$message = $facebook->api_client->dashboard_getNews($uid);
Response
This call returns the text of the current news as a string, or an error code on failure.
Error Codes
| Code | Description | |
| 1 | An unknown error occurred. | |
|---|---|---|
| 200 | Permissions error. The application does not have permission to perform this action. |
