0

I'm curious if it's possible to get the "friendship" information via the Facebook PHP API, meaning information about the friendship the logged in user and one of his friends share?

Information that is visible on this page:

https://www.facebook.com/profile.php?id=[YOUR ID]&and=[YOUR FRIENDS' ID]

Is this possible?

Kara
  • 6,115
  • 16
  • 50
  • 57
Tanax
  • 433
  • 2
  • 10
  • 20
  • What did the facebook API documentation say on the subject? –  Jan 02 '12 at 18:33
  • Well I've only just started using the PHP SDK so I'm not really familiar with the documentation but upon looking through the pages, it appears it doesn't say anything about it. However, that is true about a lot of functions that the API can do. For instance, the FQL section doesn't list every query you can make. – Tanax Jan 02 '12 at 18:40

1 Answers1

1

Via the Graph API you can query the /me object. Two properties you will want relationship_status and significant_other. I don't see where it specifies the "how long" part. Not from the Graph API nor from FQL.

Also see me/family in the graph.

DMCS
  • 31,720
  • 14
  • 71
  • 104
  • Thanks! Not really sure though how you mean query the /me object. How would querying /me give me information about for instance that my brother is listed as a *brother* on Facebook? – Tanax Jan 02 '12 at 20:58
  • Hi, play with the me/family in the graph https://developers.facebook.com/tools/explorer – DMCS Jan 03 '12 at 01:18
  • Okay, I seem to have found a solution to the family part. The "how long" part is still unsolved though. Perhaps it's not even possible with the API.. – Tanax Jan 03 '12 at 02:15
  • I vote for not possible as of yet with the API. Maybe in the future :) – DMCS Jan 03 '12 at 04:15
  • Well, it did give me information about if someone is listed as my family, however that wasn't really the original question. I was searching for a way to get information about how long I have been friends with someone. Like, when did I befriend person X(or rather; when did person X get added to my friendslist)? I did play around with the /me object, however nothing came up. Or did you mean that you know that this is possible? – Tanax Feb 05 '12 at 11:29
  • The answer is: "It is not possible with the current API to know how long" – DMCS Feb 05 '12 at 13:32