gpt4 book ai didi

php - 使用FQL返回好友数据

转载 作者:搜寻专家 更新时间:2023-10-31 22:14:25 26 4
gpt4 key购买 nike

是否可以使用 FQL 返回满足特定要求的用户 friend ,即返回计算机专业等专业的 friend ?这是我用于返回好友数据的当前 FQL 查询,如何修改这些查询以实现此目的?如果不能,有哪些替代解决方案?

 try{
$fql = "select name,education,work from user WHERE uid IN (select uid2 from friend where uid1=($user))";
$param = array(
'method' => 'fql.query',
'query' => $fql,
'callback' => ''
);
$fqlResult = $facebook->api($param);
}
catch(Exception $o){
d($o);
}
}

最佳答案

不确定这是否有效,但尝试将您的 fql 查询添加到类似这样的内容中,

select name,education,work from user WHERE uid IN (select uid2 from friend where uid1=($user) AND education.type = "Computer Science"

关于php - 使用FQL返回好友数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8407696/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com