2010-09-11 64 views
0

所以我想學習如何獲得使用Facebook的API的URL的鏈接統計。Facebook的查詢語言麻煩 - 試圖獲得link_stats

這是我在這裏:

require "application/libraries/facebook.php"; 

    // Create our Application instance (replace this with your appId and secret). 
    $facebook = new Facebook(array(
     'appId' => 'APP ID WAS HERE', 
     'secret' => 'SECRET IS A SECRET', 
     'cookie' => true, 
    )); 

    $fql = 'SELECT total_count FROM link_stat WHERE url=\"http://google.com\"'; 
    $param = array(
     'method' => 'fql.query', 
     'query'  => $fql, 
     'callback' => '' 
    ); 
    $fqlResult = $facebook->api($param); 

這是給我一個空白頁。難道我沒有在FB應用程序註冊的網站上測試這個嗎?

我迷路了。

感謝, 丹

回答