<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: How To Get Statistics For A Facebook &#8220;Like&#8221; Button And Shared URLs</title>
	<atom:link href="http://www.saschakimmel.com/2010/05/how-to-get-statistics-for-a-facebook-like-button-and-shared-urls/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.saschakimmel.com/2010/05/how-to-get-statistics-for-a-facebook-like-button-and-shared-urls/</link>
	<description>Entrepreneur, internet marketer, full-scale web developer, media production, love SEO, SEM, AJAX, PHP - Living the web experience since 1996</description>
	<pubDate>Sat, 04 Feb 2012 20:28:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: vigrx</title>
		<link>http://www.saschakimmel.com/2010/05/how-to-get-statistics-for-a-facebook-like-button-and-shared-urls/comment-page-1/#comment-44159</link>
		<dc:creator>vigrx</dc:creator>
		<pubDate>Sun, 29 May 2011 21:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.saschakimmel.com/?p=633#comment-44159</guid>
		<description>Sathish,

Try this query if you want the fan count of a page:

http://api.facebook.com/method/fql.query?query=select%20fan_count%20from%20page%20where%20page_id=

Simply add at the end your facebook page id:

http://api.facebook.com/method/fql.query?query=select%20fan_count%20from%20page%20where%20page_id=1111111111111111</description>
		<content:encoded><![CDATA[<p>Sathish,</p>
<p>Try this query if you want the fan count of a page:</p>
<p><a href="http://api.facebook.com/method/fql.query?query=select%20fan_count%20from%20page%20where%20page_id=" rel="nofollow">http://api.facebook.com/method/fql.query?query=select%20fan_count%20from%20page%20where%20page_id=</a></p>
<p>Simply add at the end your facebook page id:</p>
<p><a href="http://api.facebook.com/method/fql.query?query=select%20fan_count%20from%20page%20where%20page_id=1111111111111111" rel="nofollow">http://api.facebook.com/method/fql.query?query=select%20fan_count%20from%20page%20where%20page_id=1111111111111111</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wat met die Facebook &#8220;Like&#8221; knop ?</title>
		<link>http://www.saschakimmel.com/2010/05/how-to-get-statistics-for-a-facebook-like-button-and-shared-urls/comment-page-1/#comment-43170</link>
		<dc:creator>Wat met die Facebook &#8220;Like&#8221; knop ?</dc:creator>
		<pubDate>Sun, 22 May 2011 21:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.saschakimmel.com/?p=633#comment-43170</guid>
		<description>[...] How to get statistics for a Facebook Like link [...]</description>
		<content:encoded><![CDATA[<p>[...] How to get statistics for a Facebook Like link [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: subhadip</title>
		<link>http://www.saschakimmel.com/2010/05/how-to-get-statistics-for-a-facebook-like-button-and-shared-urls/comment-page-1/#comment-42078</link>
		<dc:creator>subhadip</dc:creator>
		<pubDate>Mon, 16 May 2011 08:26:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.saschakimmel.com/?p=633#comment-42078</guid>
		<description>Hi,

This is really helpful and just what I was looking for. Thanks!!

I have one question though. If you use the url "http://www.facebook.com/radiohead", you will get the correct numbers, but if the url is "http://www.facebook.com/microfiches", all the numbers are shown 0, while a visit to that URL clearly shows that this band has 85 likes. 

Can you please help me in understanding why is this happening?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>This is really helpful and just what I was looking for. Thanks!!</p>
<p>I have one question though. If you use the url &#8220;http://www.facebook.com/radiohead&#8221;, you will get the correct numbers, but if the url is &#8220;http://www.facebook.com/microfiches&#8221;, all the numbers are shown 0, while a visit to that URL clearly shows that this band has 85 likes. </p>
<p>Can you please help me in understanding why is this happening?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pham Hoang</title>
		<link>http://www.saschakimmel.com/2010/05/how-to-get-statistics-for-a-facebook-like-button-and-shared-urls/comment-page-1/#comment-40725</link>
		<dc:creator>Pham Hoang</dc:creator>
		<pubDate>Fri, 06 May 2011 04:24:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.saschakimmel.com/?p=633#comment-40725</guid>
		<description>Hi Sascha,

I glad to get help from you. In case, i want to get list of users who have MY FACEBOOK PAGE, so could you please help me do that?

Thanks so much!</description>
		<content:encoded><![CDATA[<p>Hi Sascha,</p>
<p>I glad to get help from you. In case, i want to get list of users who have MY FACEBOOK PAGE, so could you please help me do that?</p>
<p>Thanks so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Transcendental Generalization &#187; Blog Archive &#187; Determining Facebook Like Count and Twitter Tweet Count for a URL</title>
		<link>http://www.saschakimmel.com/2010/05/how-to-get-statistics-for-a-facebook-like-button-and-shared-urls/comment-page-1/#comment-29842</link>
		<dc:creator>Transcendental Generalization &#187; Blog Archive &#187; Determining Facebook Like Count and Twitter Tweet Count for a URL</dc:creator>
		<pubDate>Fri, 25 Feb 2011 22:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.saschakimmel.com/?p=633#comment-29842</guid>
		<description>[...] This site had the solution for Facebook likes. Let&#8217;s say your page, containing like and tweet buttons is at http://the.url.com. Simply type the following at the command line:  curl "https://api.facebook.com/method/fql.query?query=select%20%20like_count%20from%20link_stat%20where%20url=%22http://the.url.com%22"  You&#8217;ll get back an XML document containing the like count. [...]</description>
		<content:encoded><![CDATA[<p>[...] This site had the solution for Facebook likes. Let&#8217;s say your page, containing like and tweet buttons is at <a href="http://the.url.com" rel="nofollow">http://the.url.com</a>. Simply type the following at the command line:  curl &#8220;https://api.facebook.com/method/fql.query?query=select%20%20like_count%20from%20link_stat%20where%20url=%22http://the.url.com%22&#8243;  You&#8217;ll get back an XML document containing the like count. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ellen Sundh</title>
		<link>http://www.saschakimmel.com/2010/05/how-to-get-statistics-for-a-facebook-like-button-and-shared-urls/comment-page-1/#comment-28711</link>
		<dc:creator>Ellen Sundh</dc:creator>
		<pubDate>Thu, 17 Feb 2011 19:16:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.saschakimmel.com/?p=633#comment-28711</guid>
		<description>Nice job! 

Here is an example of how you extract the data and then sort it by likes in PHP:
http://www.sundh.com/blog/2010/11/get-likes-on-urls-from-facebook/</description>
		<content:encoded><![CDATA[<p>Nice job! </p>
<p>Here is an example of how you extract the data and then sort it by likes in PHP:<br />
<a href="http://www.sundh.com/blog/2010/11/get-likes-on-urls-from-facebook/" rel="nofollow">http://www.sundh.com/blog/2010/11/get-likes-on-urls-from-facebook/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damien Keitel</title>
		<link>http://www.saschakimmel.com/2010/05/how-to-get-statistics-for-a-facebook-like-button-and-shared-urls/comment-page-1/#comment-27876</link>
		<dc:creator>Damien Keitel</dc:creator>
		<pubDate>Sat, 12 Feb 2011 01:06:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.saschakimmel.com/?p=633#comment-27876</guid>
		<description>To get xml stuff happening in php.
Here is my little trick.

$somexml = simplexml_file_load('https://api.facebook.com/method/fql.query?query=select%20%20like_count,%20total_count,%20share_count,%20click_count%20from%20link_stat%20where%20url=%22http://www.saschakimmel.com/2010/05/how-to-capture-clicks-on-the-facebook-like-button/%22');

then retrieve the data like

echo $somexml-&gt;chilnode-&gt;childnode

or $childnode1 = $somexml-&gt;chilnode-&gt;childnode

eg..

$like_count = $somexml-&gt;link_stat-&gt;like_count

echo $somexml-&gt;link_stat-&gt;like_count . ' people like this page'; //echo's 4 people like this page

echo $like_count . ' people like this page'; //echo's 4 people like this page

$sopmexml

to quote mike below

However - when I have tried to access it from scrips I get a blank result. EG I have tried simpleXML, curl, file_get_contents. I dont get errors as such… just seems like there is nothing retrurned. I have tested other XMLs, and they all load (although all are http rather than https). Is there something silly and simple I may have overlooked?

Thanks in advance

Mike</description>
		<content:encoded><![CDATA[<p>To get xml stuff happening in php.<br />
Here is my little trick.</p>
<p>$somexml = simplexml_file_load(&#8217;https://api.facebook.com/method/fql.query?query=select%20%20like_count,%20total_count,%20share_count,%20click_count%20from%20link_stat%20where%20url=%22http://www.saschakimmel.com/2010/05/how-to-capture-clicks-on-the-facebook-like-button/%22&#8242;);</p>
<p>then retrieve the data like</p>
<p>echo $somexml-&gt;chilnode-&gt;childnode</p>
<p>or $childnode1 = $somexml-&gt;chilnode-&gt;childnode</p>
<p>eg..</p>
<p>$like_count = $somexml-&gt;link_stat-&gt;like_count</p>
<p>echo $somexml-&gt;link_stat-&gt;like_count . &#8216; people like this page&#8217;; //echo&#8217;s 4 people like this page</p>
<p>echo $like_count . &#8216; people like this page&#8217;; //echo&#8217;s 4 people like this page</p>
<p>$sopmexml</p>
<p>to quote mike below</p>
<p>However - when I have tried to access it from scrips I get a blank result. EG I have tried simpleXML, curl, file_get_contents. I dont get errors as such… just seems like there is nothing retrurned. I have tested other XMLs, and they all load (although all are http rather than https). Is there something silly and simple I may have overlooked?</p>
<p>Thanks in advance</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit</title>
		<link>http://www.saschakimmel.com/2010/05/how-to-get-statistics-for-a-facebook-like-button-and-shared-urls/comment-page-1/#comment-27791</link>
		<dc:creator>Amit</dc:creator>
		<pubDate>Fri, 11 Feb 2011 08:31:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.saschakimmel.com/?p=633#comment-27791</guid>
		<description>there is one facebook page also which shows detailed statistics....i forgot the url :( sorry</description>
		<content:encoded><![CDATA[<p>there is one facebook page also which shows detailed statistics&#8230;.i forgot the url <img src='http://www.saschakimmel.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> sorry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.saschakimmel.com/2010/05/how-to-get-statistics-for-a-facebook-like-button-and-shared-urls/comment-page-1/#comment-23567</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 11 Jan 2011 19:39:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.saschakimmel.com/?p=633#comment-23567</guid>
		<description>I have a Like button on my web page. Facebook Insights shows the Like count for the URL however there is no count shown next to the Like button on my web page. This is an example: http://this1that1whatever.com/. Does anyone have any ideas on what might be causing this misbehavior? Thanks.</description>
		<content:encoded><![CDATA[<p>I have a Like button on my web page. Facebook Insights shows the Like count for the URL however there is no count shown next to the Like button on my web page. This is an example: <a href="http://this1that1whatever.com/" rel="nofollow">http://this1that1whatever.com/</a>. Does anyone have any ideas on what might be causing this misbehavior? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sathish</title>
		<link>http://www.saschakimmel.com/2010/05/how-to-get-statistics-for-a-facebook-like-button-and-shared-urls/comment-page-1/#comment-22840</link>
		<dc:creator>Sathish</dc:creator>
		<pubDate>Thu, 06 Jan 2011 06:06:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.saschakimmel.com/?p=633#comment-22840</guid>
		<description>Hello Lukas,

https://api.facebook.com/method/fql.query?query=SELECT%20share_count,click_count,%20like_count,%20total_count%20FROM%20link_stat%20WHERE%20url=%22http://www.asendes.com%22


I was using this query to get the stats...everthng seems to be ok..but the click_count always returns me 0.do you have any idea?

Thanks in advance.

Sathish.</description>
		<content:encoded><![CDATA[<p>Hello Lukas,</p>
<p><a href="https://api.facebook.com/method/fql.query?query=SELECT%20share_count,click_count,%20like_count,%20total_count%20FROM%20link_stat%20WHERE%20url=%22http://www.asendes.com%22" rel="nofollow">https://api.facebook.com/method/fql.query?query=SELECT%20share_count,click_count,%20like_count,%20total_count%20FROM%20link_stat%20WHERE%20url=%22http://www.asendes.com%22</a></p>
<p>I was using this query to get the stats&#8230;everthng seems to be ok..but the click_count always returns me 0.do you have any idea?</p>
<p>Thanks in advance.</p>
<p>Sathish.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
