1

我想获取用户的朋友列表。在此列表中,我想知道哪些用户也安装了该应用程序。

根据https://developers.facebook.com/docs/reference/api/user/ 有一个可通过图形 api 访问的已安装参数。

我正在尝试使用以下查询来执行此操作,但我无法获得结果。(为了便于阅读,我将查询拆分为多行)

var query = "SELECT uid, name, first_name, last_name, pic_square, status, installed  FROM user ";
query +=  "where uid IN (SELECT uid2 FROM friend WHERE uid1 = " + Titanium.Facebook.uid + ")";
query += "order by first_name";
4

1 回答 1

2

刚刚使用 api explorer 看看这个。您希望“is_app_user”作为 FQL 查询的字段并且未安装,因为 fql 中不存在该字段,但它是一个 api 端点

fql?q=SELECT uid, name, first_name, last_name, pic_square, status, is_app_user FROM user where uid IN (SELECT uid2 FROM friend WHERE uid1 = me()

或尝试

https://developers.facebook.com/tools/explorer/433871385166/?method=GET&path=fql%3Fq%3DSELECT%20uid%2C%20name%2C%20first_name%2C%20last_name%2C%20pic_square%2C%20status%2C %20is_app_user%20FROM%20user%20where%20uid%20IN%20(SELECT%20uid2%20FROM%20friend%20WHERE%20uid1%20%3D%20me ())

于 2012-04-12T07:10:24.580 回答