如何通过uid计算Facebook用户的总朋友?

问题描述:

如何通过 uid 计算Facebook用户的总朋友数?

How can I count the total friends of a Facebook user by uid?

可以查询用户表格中有一个 friend_count 字段。

There is a friend_count field against the user table that you can query.

SELECT friend_count FROM user WHERE uid = me()

只需将您要查询的用户的UID替换为 me()

Just replace me() with the UID of the user that you want to query.