Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可以在 Graph API 中访问朋友姓名。但是,我想要一种方法 - 通过图形或 App API 能够基于特定属性进行搜索。
例如:搜索来自英国伦敦的所有朋友。
或者搜索所有喜欢摄影的朋友。
有什么地方或 API 可以帮助解决这个问题吗?
您可以使用FQL搜索查询用户表的多个属性。例如,这是一个针对所有女性朋友的查询:
select uid, name, sex from user where uid in (SELECT uid2 FROM friend WHERE uid1 = me()) and sex="female"
该位置是一个复杂的对象,我不确定它是否可以像其他字段一样被查询。