我正在尝试使用 PHP SDK 进行 fql 多查询。这是我的代码
try {
$fql = array(
"query1" => "SELECT uid2 FROM friend WHERE uid1 = me()",
"query2" => "SELECT name, url, pic FROM profile WHERE id IN (SELECT uid2 FROM #query1)"
);
//$fql = "SELECT uid2 FROM friend WHERE uid1 = me()";
// Proceed knowing you have a logged in user who's authenticated.
$user_profile = $facebook->api( array(
'method' => 'fql.multiquery',
'query' => $fql,
) );
} catch ( FacebookApiException $e ) {
error_log( print_r( $e->getMessage(), true ) );
$user = NULL;
}
这总是返回一个没有消息的异常
[04-May-2012 20:22:26 UTC] PHP 注意:未定义的属性:C:\Program Files (x86)\Zend\Apache2\htdocs\wordpress\wp-content\plugins\all- 中的 FacebookApiException::$getMessage in-one-event-calendar\lib\plugins\A1ecFacebookConnectorPlugin.php 在第 120 行 [04-May-2012 20:22:26 UTC]
我显然做错了什么,那会是什么?