当进行查询来获取事件细节我似乎得到venue.name而不是venue.id结果集。 出现了工作表结构的变化突击还是我做错了什么。 该图形API浏览器给人的venue.id但通过PHP SDK在自己的网站上使用FQL时,它的venue.name我得到。
继承人的代码:
$fql='{
"event_info": "SELECT name,description, pic_small,pic_big, eid,venue,location FROM event WHERE eid ='.$_GET['id'].'",
"event_venue":"SELECT name, username, page_id, location FROM page WHERE name IN (SELECT venue.id FROM #event_info)"
}';
$setup = array(
'method' => 'fql.multiquery',
'queries' => $fql,
'callback' => ''
);
$result = $facebook->api($setup);
这导致了“event_venue”结果集是空的。
这里的转储:
Array
(
[0] => Array
(
[name] => event_info
[fql_result_set] => Array
(
[0] => Array
(
[eid] => 410351692336116
[venue] => Array
(
[name] => Boothill
)
[location] => Boothill
)
)
)
[1] => Array
(
[name] => event_venue
[fql_result_set] => Array
(
)
)
)