I trying to get my immediate family data from facebook using FQL. I run this statement:
SELECT first_name, middle_name, last_name, birthday_date
from user
where uid IN (SELECT uid
FROM family
WHERE profile_id = me()
and (relationship = 'brother'
or relationship = 'sister'
or relationship = 'father'
or relationship = 'mother'
or relationship = 'son'
or relationship = 'daughter'
or relationship = 'wife'
or relationship = 'husband'))
But I want to have also the relatioship in the data. It gives me only first_name, middle_name, last_name, birthday_date
You have to do a to get this data, you need to do an FQL multi-query:
You’ll need to join the two result objects together on
uidin your script.