FQL, search for non-friend people and sort by mutual friends

大城市里の小女人 提交于 2019-12-06 13:57:36

Your best bet, since there's no FQL solution, would be to begin a database of your own following Facebook's best practices and policies of course. That way you can structure your data. Data can be kept current by setting up Facebook's Realtime updates API (https://developers.facebook.com/docs/reference/api/realtime/) to capture when new friendships are made.

I just tried it with "order by mutual_friend_count desc" and it worked. So the query needs to be:

SELECT first_name,uid FROM user WHERE contains('pete') order by mutual_friend_count desc

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!