Statistiche facebook per un url
23 Dic 2010 Lascia un commento
Come recuperare informazioni circa:
- quanta gente ha condiviso un link?
- quanta gente ha fatto clic su “mi piace”?
- quanta gente ha commentato un url?
- quanta gente ha cliccato su un url condiviso?
è sufficiente accedere ad un url come questo:
http://api.facebook.com/restserver.php?method=links.getStats&urls=http://www.google.com
il cui formato di risposta è questo:
<?xml version="1.0" encoding="UTF-8"?> <links_getStats_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd" list="true"> <link_stat> <url>http://www.google.com</url> <share_count>292957</share_count> <like_count>151683</like_count> <comment_count>176116</comment_count> <total_count>620756</total_count> <click_count>265614</click_count> <normalized_url>http://www.google.com/</normalized_url> <comments_fbid>381702034999</comments_fbid> </link_stat> </links_getStats_response>
Annunci