所以我正在尝试学习如何使用 Facebook 的 API 获取 URL 的链接统计信息。
这就是我在这里:
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 应用程序的网站上测试这个?
我迷路了。
谢谢,丹