Through: https://developers.facebook.com/tools/explorer if I ask with use of graph api:
get: ?ids=http://localhost/gbi-bieganie.pl/2013/03/20/kolacja-po-wieczornym-bieganiu-tak-czy-nie/
I get different result for the same url, than with use of fql query:
SELECT url, normalized_url, share_count, like_count, comment_count, total_count, commentsbox_count, comments_fbid, click_count
FROM link_stat
WHERE url = "http://localhost/gbi-bieganie.pl/2013/03/20/kolacja-po-wieczornym-bieganiu-tak-czy-nie/";
Can anybody explain me why those queries differ, and how should I do one query that gets correct number of likes of an url, number of its comments, and number of shares?
The following recommendations will help you in your SQL tuning process.
You'll find 3 sections below:
ALTER TABLE `link_stat` ADD INDEX `link_stat_idx_url` (`url`);
SELECT
link_stat.url,
link_stat.normalized_url,
link_stat.share_count,
link_stat.like_count,
link_stat.comment_count,
link_stat.total_count,
link_stat.commentsbox_count,
link_stat.comments_fbid,
link_stat.click_count
FROM
link_stat
WHERE
link_stat.url = 'http://localhost/gbi-bieganie.pl/2013/03/20/kolacja-po-wieczornym-bieganiu-tak-czy-nie/'