Take the 2-minute tour ×

See the image below,say if i i/p z,i need to get o/p as x.

This is used to find parents and grand parents.

Can i do this using Mysql.

Any help in this would be appreciated.

Can this be done using facebook fql


share|improve this question
@evan:Do you know how to do this? –  user1035084 Nov 13 '11 at 5:33
@Bill Karwin:I'm looking for you.I see you've answered to this type of questions.Could you look at this? –  user1035084 Nov 13 '11 at 10:31

2 Answers 2

You can use the user_relationships permissions on facebook to retrieve information about a users family. However this requires the user to actually define people as their family members. Here is a link to the permissions page. Once you have determined which permissions you need, you can read here and learn how to implement the permission dialog into your application.

share|improve this answer
@Lix.I mean when a x send invites to y,z.Can i track it? –  user1035084 Nov 13 '11 at 10:12
you can track any and all invites sent from your application... you can see who sent them and who they were sent to. –  Lix Nov 13 '11 at 11:05

Hierarchies are complicated in MySQL. I don't think you can store a bunch of custom stuff in fql so you probably can't do it that way unless it's a built in feature.

Here's an article about MySQL hierarchies:

See also this question with good answers:
Hierarchical Data in MySQL

There are even books written on the subject:

Complicated, but doable.

share|improve this answer

Your Answer

