/ Published in: PHP
When you add facebook like button to your site, probably, you also want to save the number of likes of your pages to your database.These data are very useful and very important because they tell you which of your articles are better than others. Moreover, these pages are better than others because the user has decided to tell his friends about it.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function readFacebookLikes($url) { $query = "select total_count from link_stat WHERE url ='" . $url ."'"; }
URL: http://www.barattalo.it/2012/10/08/how-to-read-facebook-likes-count/