gpt4 book ai didi

facebook - fql.multiquery 新sdk

转载 作者:行者123 更新时间:2023-12-04 06:51:27 26 4
gpt4 key购买 nike

我无法弄清楚这个 fql.multiquery 有什么问题,似乎无法找到任何带有 fql.multiquery 的新 sdk 的示例。

最终,我想获取访问用户页面的页面名称和页面 ID,他们都是管理员和粉丝。

$查询 = '{

“page_admin_ids”:
"SELECT page_id FROM page_admin WHERE uid = ' . $afid . ' LIMIT 5",

“page_fan_ids”:
"SELECT page_id FROM page_fan WHERE page_id IN (SELECT page_id FROM #page_admin_ids)",

“page_name_and_id”:
“SELECT name, page_id FROM page WHERE page_id IN (SELECT page_id FROM #page_fan_ids)”

}';

$attachment = array("method"=>"fql.multiquery","query"=>$queries,'access_token'=>$access_token);

$ret_code = $facebook->api($attachment);

打印_r($ret_code);死();

最佳答案

$multiQuery = array(
'likes' =>
' SELECT ... FROM like ...',
'users' =>
' SELECT uid, name ' .
' FROM user ' .
' WHERE uid IN (SELECT user_id FROM #likes) ',
);
$multiQueryResult = $facebook->api(array(
'method' => 'fql.multiquery',
'queries' => $multiQuery
));

关于facebook - fql.multiquery 新sdk,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3066250/

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