如何确定哪些是Facebook应用程序用户的最佳朋友? [英] How could I determine which are the best friends of a Facebook application user?
问题描述
我正在尝试使用Facebook PHP SDK创建Facebook应用程序。
I'm currently trying to create a Facebook application with the Facebook PHP SDK.
我想检索哪些用户的朋友是他最好的朋友,或他最讨厌的一个。
I would like to retrieve which of the user's friends are his best friends, or the one he's most talking with.
你知道一个算法或提示来获取它们吗?
Do you know an algorithm or a tip to get them?
推荐答案
只要寻找友谊的标记,给每个活动一个体重,总共朋友得分,并且按照友谊的年龄适当(如果你正在寻找一个一生得分了)。您可以查看不同的时间范围,例如最近最好的朋友等。
Simply, look for markers of friendship, give each activity a weight, total up the "friend score", and appropriate by the age of the friendship (if you're looking for a "lifetime" score). You could look at different timeframes, such as "recent best friends", etc.
我对Facebook的Graph API并不十分熟悉,但如果您可以访问年龄的朋友和他们交换的评论/墙壁帖子的数量,你会有一些信息继续下去。想想其他标记,如他们联合标记的照片数量,等等。
I'm not phenomenally familiar with Facebook's Graph API, but if you could access the age of the friend and the number of comments/wall posts they exchange, you'd have some kind of information to go on. Think of other markers like the number of photos they're jointly tagged in, and so on.
这篇关于如何确定哪些是Facebook应用程序用户的最佳朋友?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!