ctcp Posted October 2, 2011 Share Posted October 2, 2011 can sombady help me how to count and store to mysql database facebook likes i got FaceBook Like Button with php code <div id="FaceBookLikeButton"> <script src="http://connect.facebook.net/en_US/all.js#xfbml=1" type="text/javascript"></script> <script type="text/javascript"> <!--//--><![CDATA[//><!-- var fb = document.createElement('fb:like'); fb.setAttribute("href","<?php $url=$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];echo $url;?>"); fb.setAttribute("layout","button_count"); fb.setAttribute("show_faces","false"); fb.setAttribute("width","100"); fb.setAttribute("font","arial"); document.getElementById("FaceBookLikeButton").appendChild(fb); //--><!]]> </script> </div> Link to comment https://forums.phpfreaks.com/topic/248266-fb-count-php-mysql/ Share on other sites More sharing options...
iblood Posted October 2, 2011 Share Posted October 2, 2011 I believe you're gonna need to use FQL for this. This might help. http://developers.facebook.com/docs/reference/fql/link_stat/ Link to comment https://forums.phpfreaks.com/topic/248266-fb-count-php-mysql/#findComment-1274930 Share on other sites More sharing options...
ctcp Posted October 3, 2011 Author Share Posted October 3, 2011 well its not possible to count ? i don't whant to use fql becouse i need use Api keys ... Link to comment https://forums.phpfreaks.com/topic/248266-fb-count-php-mysql/#findComment-1275284 Share on other sites More sharing options...
polycap9 Posted October 15, 2011 Share Posted October 15, 2011 I recommend try using fql.. Link to comment https://forums.phpfreaks.com/topic/248266-fb-count-php-mysql/#findComment-1279574 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.