特定のURLまたは少なくともFacebookページが好きなユーザーをリストする必要があります
PHPとhttps://api.facebook.com/method/fql.queryの両方を使ってみました
URLのいいね数がわかる
$arr[1]['url'] = 'http://example.com/test/test3.php?ref=gametest&fb_ref=gametest&fb_source=gametest';
$arr[1]['object_id'] = '10150930574980642';
require_once("facebook.php");
$facebook = new Facebook(array(
'appId' => '325617367526193',
'secret' => '6c40e01dd717431c9b7ec6ce68bf0c94',
));
http://developers.facebook.com/docs/reference/fql/like/の例を使用して同様のクエリを作成しました
$query = <<<FQL
SELECT user_id FROM like WHERE object_id="10150930574980642"
FQL;
$fql_query_url = 'https://graph.facebook.com/fql?q=' . rawurlencode ( $query );
$fql_query_url .= '&access_token=' . rawurlencode ( $facebook->getAccessToken() );
しかし、結果のリンクにはデータがまったくありません
{
"data": [
]
}
access_token の有無にかかわらずリンク経由で同じ結果
api.facebook.com/method/fql.query?query=SELECT%20user_id%20FROM%20like%20WHERE%20object_id%3D%2210150930574980642%22