-1
我有一個示例代碼:運行fql facebook查詢無法從網址發表評論時出錯?
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查詢到獲得對此鏈接的評論?