Returns the identifiers of the current user's community friends. The current user is determined from the session_key parameter. The values returned from this call are not storable.
| Type | Name | Required | Description |
|---|---|---|---|
string
| api_key | ✔ | The application key associated with the calling application. |
string
| community | ✔ | Community system name. Use up.community.getList method to retrieve available communities. |
string
| session_key | ✔ | The session key of the logged in user. |
string
| sig | ✔ | An MD5 hash of the current request and your secret key, as described in the authentication guide. |
string
| format | Desired response format. Either XML (default) or JSON.
|
<?xml version="1.0" encoding="UTF-8"?> <friends_get_response list="true"> <uid>222333</uid> <uid>1240079</uid> </friends_get_response>
Privacy Note: The friend ids returned are those friends visible to the Facebook Platform. If no friends are found, the method will return an empty friends_get_response element.
This function is similar (but returned in a slightly different format) to doing the following UPQL query, with the appropriate parameters filled in:
SELECT uid2 FROM friend WHERE uid1=loggedInUid
| Code | Description |
|---|---|
| 1 | An unknown error occurred. Please resubmit the request. |
| 2 | The service is not available at this time. |
| 4 | The application has reached the maximum number of requests allowed. More requests are allowed once the time window has completed. |
| 5 | The request came from a remote address not allowed by this application. |
| 101 | The api key submitted is not associated with any known application. |
| 102 | The session key was improperly submitted or has reached its timeout. Direct the user to log in again to obtain another key. |
| 103 | The submitted call_id was not greater than the previous call_id for this session. |
| 104 | Incorrect signature. |