Tanax Tanax - 1 year ago 103
PHP Question

PHP Facebook API: How to retrieve how long I've been friends with someone

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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download