Father's Day is coming! - Can I get a Facebook user father profile?

I would like to get a Facebook profile ID from a Facebook user user.

Basically, I want to display a photo of the user's father and say "how about buying X for dad."

Is this possible using the graph (or REST) ​​API?

Edit: It looks like this should be a FQL query and cannot be executed directly with other APIs. I'm still trying to figure out how to do this, and am looking for the right JOIN format for information. I will send it if I know. Thank you for your interest in the question everyone. It was fun to read all sorts of comments coming. Clearly, a slightly more constructive criticism is in contrast to rampant fading. If you think that people will be deprived of civil rights, I would be interested to know the reasons. As a friendly reminder of the upcoming event, I see nothing wrong with this approach. I respect different wordings, if I don’t find my father, if they died. If I asked: “How can I write someone a thread that X is buying Y a Z for father’s day”, that would be one thing, but I thought it was a pretty trivial privacy issue. But then again, maybe some of you disagree ... Thanks for reading ...

+6
facebook facebook-graph-api facebook-fql
source share
1 answer

It is clear that this is a very touching subject for developers considering all downvotes. I personally hate Facebook, but that’s the right question. This is definitely possible with standard FQL queries. Just write the queries for the "family" table:

http://developers.facebook.com/docs/reference/fql/family

This table should have a “ relationship ” field that defines what the user’s relationship is with this person (parent, mother, father, sibling, sister, brother, child, son, daughter). The Graph API is still brand new and there seems to be nothing special for it yet.

Edit

Meet my family:

SELECT uid, relationship from family where profile_id=xxxxxx [ { "relationship": "brother", "uid": "xxxxxx" }, { "relationship": "father", "uid": "xxxxxx" }, { "relationship": "mother", "uid": "xxxxxx" } ] 

You can test it in new API docs here .

+11
source share

All Articles