FQL facebook query language: how can i query the l

2020-05-24 06:08发布

When a user logs in to my facebook application, i want to show him a list of all of his friends that has my application installed.

can I use FQL to query who's of his friends have my application installed? and if so how ?

thanks!

2条回答
霸刀☆藐视天下
2楼-- · 2020-05-24 06:49

Actually, you can do pull list of friends who installed an app through FQL.

SELECT uid, name, pic_square FROM user WHERE is_app_user  AND uid IN (SELECT uid2 FROM friend WHERE uid1 = me())
查看更多
走好不送
3楼-- · 2020-05-24 07:10

You can do it like this also, if is_app_user=1 then its app user.

NSString *query = @"SELECT uid, name, pic_square,is_app_user FROM user WHERE uid IN " @"(SELECT uid2 FROM friend WHERE uid1 = me() LIMIT 25)";

查看更多
登录 后发表回答