我有一个示例代码:
require 'facebook.php';
$facebook = new Facebook(array(
'appId' => xxx,
'secret' => xxx,
'cookie' => true,
));
$my_url = 'http://didong.net/tru-than.html';
$fpl = "
SELECT post_fbid, fromid, object_id, text, time FROM comment WHERE object_id IN
(SELECT comments_fbid FROM link_stat WHERE url ='".$my_url."')
";
$params = array(
'method' => 'fql.query',
'query' => $fpl,
);
//Run Query
$result = $facebook->api($params);
print_r($result);
=> 结果是:array()
但是当我浏览器链接https://graph.facebook.com/comments/?ids=http://didong.net/tru-than.html
=> 结果有评论
=> 如何运行 fql facebook 查询以获取对此链接的评论?