Go to Facebook Graph an click on FQL query. Then Type in the following:
SELECT uid,first_name,last_name,sex FROM user WHERE uid IN (SELECT uid FROM event_member where eid = 'XXX' AND rsvp_status == 'attending')
For just getting the uid:
SELECT uid FROM user WHERE uid IN (SELECT uid FROM...