Topic-icon Show "friends of friends" for fb users

Active Subscriptions:

None
9 years 11 months ago #43493 by davlar
AirBnB has a great system of telling you your degrees of separation from another user you are considering trusting. Basically it seem to check if one of your friends is friends of the person you are considering renting to/from. Do you know how this is achieved? Is it possible with jfbconnect? Very grateful for your advice on how to go about achieving this.

Thanks

David


File Attachment:


File Attachment:
The topic has been locked.
Active Subscriptions:

None
9 years 11 months ago #43495 by davlar
This is what facebook says about it.

developers.facebook.com/docs/showcase/airbnb/
The topic has been locked.
Support Specialist
9 years 11 months ago #43496 by alzander
I'm not really seeing what you're saying in those pictures, but maybe I'm just missing it. Can you tell me where in those pictures should I be looking?

As for the question, I'm pretty sure I understand what you mean. With JFBConnect, we don't have built-in support for what you're looking for. However, you could add some code that would fetch a user's friends (if they authenticated with Facebook) and then check against the current user's friends (if authenticated with Facebook) and at least tell if the connection is a 2nd degree connection. Beyond that, I don't think there's a way you could determine the relationships between a user.

That's something we could help get you started with, but you'd need a developer to flesh it out and actually implement the code for your needs. Getting a list of friends of user a and b should be a pretty easy task though.

I hope that helps answer your questions,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 11 months ago - 9 years 11 months ago #43498 by davlar
Great - thanks. You can see above each of the apartment images on the search results e.g. "2 of your friends are friends with this host" and on the apartment listing page, on the right, a list of the friends of yours who know the host.

But basically, your description is exactly what I am hoping to achieve - 2nd degree connections would be great. I assume AirBnB are storing the full friend list in db and then comparing the lists?

I would really appreciate your advice on how to get started. I found this on FB: developers.facebook.com/docs/graph-api/reference/friendlist. Presumably I need to add a custom request to the user access token for read_friendlists to get the friend list and then store the full list in my db? Grateful for the steps.

In the mean time I have posted a job on oDesk: www.odesk.com/jobs/Code-AirBnB-style-Fac...t_~~2bccc248248f9c1b

(Alex - I assume you guys are too busy, for custom development offers, but if not, please let me know).
Last edit: 9 years 11 months ago by davlar.
The topic has been locked.
Active Subscriptions:

None
9 years 11 months ago #43737 by davlar
Very grateful for your thoughts on this when you get a moment.

I will be creating a custom table (as per my other thread) so presumably will need additional column for friendlists?
The topic has been locked.
Support Specialist
9 years 11 months ago #43992 by alzander
David,
I'm really sorry for the delay in getting back to this. Between when you started this thread and your last post Facebook went an upended their whole API. The new Graph API v2 changes how friend connections works quite a bit, and may make it impossible to do what you were looking for.. or at least, as powerfully as you'd want.

Until Graph API v2 was announced, when a user authenticated on your site, they had to grant permission to their full friends list (as well as other basic profile information) to your site/app. With that, you could make a call and fetch the user IDs of all of a user's friends and store them or do whatever you wanted.

With Graph API v2, the friend permission is an additional permission you need to request. That makes the authentication popup a little longer (which can decrease signups) *and* the user will be able to decline just that permission. Additionally, and most importantly, the friend list that you can retrieve for a user that's authenticated will *only* be friends that have also authenticated to the same application. Therefore, it would be a much more limited list than all of the user's friends, as available in Graph API v1.

Now, all new apps, created after May 1st *have* to use Graph API v2. If you created an app before May 1st, you can use Graph API v1 until May 1st next year.

With all that said, let me know if you're still interested in getting the user's friend list (whatever kind) and we can help. It's really just a few lines of easy code to get the list, but you'll have to do the dirty work after that to store, parse and compare to other user's on your site.

Thanks for your patience,
Alex
The topic has been locked.