TestAPIDocNewT

From Facebook Developers Wiki

Jump to: navigation, search

Contents

[edit] Description

Returns membership list data associated with an event.


[edit] Parameters

RequiredNameTypeDescription
required api_key string This is the API key.
optional session_key float The session key of the logged in user.
required call_id int 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.
optional format string Desired response format. Either XML (default) or JSON.


[edit] Example Return XML

<?xml version="1.0" encoding="UTF-8"?> <events_getMembers_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd" list="true"> <attending list="true"> <uid>222332</uid> <uid>222333</uid> </attending> <unsure list="true"> <uid>1240077</uid> </unsure> <declined list="true"/> <not_replied list="true"> <uid>222335</uid> <uid>222336</uid> </not_replied> </events_getMembers_response>


[edit] Response

This method returns four (possibly empty) lists of users associated with an event, keyed on their RSVP statuses. These lists should never share any members.

Privacy note: The lists can contain uids of users not using the calling application.


[edit] FQL Equivalent

This function is similar (but returning in a slightly different format) to doing the following FQL query, with the appropriate parameters filled in:

SELECT uid, eid, rsvp_status FROM event_member WHERE eid=eid


[edit] Error Codes

CodeDescription
1 An unknown error occurred. Please resubmit the request.
22 The service is not available at this time.
456 The application has reached the maximum number of requests allowed. More requests are allowed once the time window has completed.
7890 The request came from a remote address not allowed by this application.

And some more text here.


[edit] Notes

Here's a note you might find useful.


[edit] See Also

See API.