I am sorry to hear you didn't get the job. Did FB give you any concrete feedback as to why they passed? There may be several factors at play here. Was it your salary requirements? How was your interactions with the group during your onsite? etc..
I am sure Facebook is looking to diversify their workforce so be more objective and look pass race (I know it is hard but try) for concrete answers as to why you didn't get the job.