FQL返回Null值

时间:2012-11-27 12:01:01

标签: facebook-graph-api facebook-php-sdk facebook-fql

我收到以下FQL查询的NULL结果

$fql="SELECT uid, page_id from page_fan where uid=me()";
$user_frnd = $facebook->api("/fql?q = " . urlencode($fql));

问题是什么?

1 个答案:

答案 0 :(得分:0)

尝试使用:

$params = array(
'method' => 'fql.query',
'query' => "SELECT uid, page_id from page_fan where uid=me()",
);

//Run Query
$JSON = $facebook->api($params);