开发者

Rebuilding the Facebook graph in my application !

开发者 https://www.devze.com 2023-03-19 01:11 出处:网络
I\'m developing a social network where each user is registered through Facebook. So I own the uid and all the friends\' uid for each user.

I'm developing a social network where each user is registered through Facebook. So I own the uid and all the friends' uid for each user.

Question 1 - Taking an user, is it possible to show all Fa开发者_开发技巧cebook's friends already registered in my application

Question 2 - When an user visit another profile's user (in my app) what do you think is the fastest way to show him the level of distance between that profile and him (For level of distance, I mean, the Facebook distance in my little Facebook graph pulled out by all the friend's list I got)


Q1: It is possible. To get the friends of the current user, use this URL (I grabbed that from the dev docs): https://graph.facebook.com/me/friends?access_token=2227470867|2.AQBEjXxd_fW52bvk.3600.1310130000.0-578251212|QCORnV4GfaN0quTTIR38b5HuC1g

Q2: That's a very tricky one, since you can't read a users friend's list of friends. You would then need to keep track of connections on your end. You might be able to do some with FQL: http://developers.facebook.com/docs/reference/fql/friend/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号