yolop Posted June 18, 2010 Share Posted June 18, 2010 hi i want with php check how much like (facebook) have to this page for example http://youlikeblank.com/like.php?id=9 this page have 515,562 likes on facebook and this page http://youlikeblank.com/like.php?id=3759 have 134,422 likes on facebook (i know because this wrote ther) i want a way with php to get how much like have for any web thank you Quote Link to comment https://forums.phpfreaks.com/topic/205162-want-to-check-how-much-like/ Share on other sites More sharing options...
Adam Posted June 18, 2010 Share Posted June 18, 2010 Look into Facebook's API. Quote Link to comment https://forums.phpfreaks.com/topic/205162-want-to-check-how-much-like/#findComment-1073888 Share on other sites More sharing options...
mentalist Posted June 18, 2010 Share Posted June 18, 2010 you already asked this earlier in another thread... Quote Link to comment https://forums.phpfreaks.com/topic/205162-want-to-check-how-much-like/#findComment-1073889 Share on other sites More sharing options...
yolop Posted June 18, 2010 Author Share Posted June 18, 2010 you already asked this earlier in another thread... yeh but the way i wrote ther don't work facebook block the way to get the source of this page with php belive me i tried Look into Facebook's API. i dont found you found? Quote Link to comment https://forums.phpfreaks.com/topic/205162-want-to-check-how-much-like/#findComment-1073891 Share on other sites More sharing options...
Adam Posted June 18, 2010 Share Posted June 18, 2010 facebook block the way to get the source of this page with php That's because you need to be logged in. i dont found you found? I found. http://developers.facebook.com/docs/guides/web Quote Link to comment https://forums.phpfreaks.com/topic/205162-want-to-check-how-much-like/#findComment-1073896 Share on other sites More sharing options...
yolop Posted June 18, 2010 Author Share Posted June 18, 2010 i want the system will be checkk and i dont want the system log in with my facebook Quote Link to comment https://forums.phpfreaks.com/topic/205162-want-to-check-how-much-like/#findComment-1073898 Share on other sites More sharing options...
Adam Posted June 18, 2010 Share Posted June 18, 2010 Well who's login do you want to use then..? You can't access Facebook without authentication. Quote Link to comment https://forums.phpfreaks.com/topic/205162-want-to-check-how-much-like/#findComment-1073899 Share on other sites More sharing options...
yolop Posted June 18, 2010 Author Share Posted June 18, 2010 and i can i do that my system log in? thank you Quote Link to comment https://forums.phpfreaks.com/topic/205162-want-to-check-how-much-like/#findComment-1073900 Share on other sites More sharing options...
Adam Posted June 18, 2010 Share Posted June 18, 2010 What? Quote Link to comment https://forums.phpfreaks.com/topic/205162-want-to-check-how-much-like/#findComment-1073902 Share on other sites More sharing options...
yolop Posted June 18, 2010 Author Share Posted June 18, 2010 What? you say that if i log in in facebook i will can check with php with this link http://www.facebook.com/plugins/like.php?href=www.facebook.com so how i log in with my system Quote Link to comment https://forums.phpfreaks.com/topic/205162-want-to-check-how-much-like/#findComment-1073917 Share on other sites More sharing options...
Adam Posted June 18, 2010 Share Posted June 18, 2010 I posted a link that should contain all the information you need. Quote Link to comment https://forums.phpfreaks.com/topic/205162-want-to-check-how-much-like/#findComment-1073918 Share on other sites More sharing options...
yolop Posted June 18, 2010 Author Share Posted June 18, 2010 I posted a link that should contain all the information you need. yeh friend i look there but i dont found anything please help me thank you so much Quote Link to comment https://forums.phpfreaks.com/topic/205162-want-to-check-how-much-like/#findComment-1073921 Share on other sites More sharing options...
yolop Posted June 18, 2010 Author Share Posted June 18, 2010 PLEASE? Quote Link to comment https://forums.phpfreaks.com/topic/205162-want-to-check-how-much-like/#findComment-1073965 Share on other sites More sharing options...
mentalist Posted June 18, 2010 Share Posted June 18, 2010 To use any api you will have to jump through some hurdles, and will include reading some of their manuals... But a quick google provided: http://www.whenpenguinsattack.com/2006/10/05/how-to-use-the-facebook-api/ I've never used facebook api specificly so... Quote Link to comment https://forums.phpfreaks.com/topic/205162-want-to-check-how-much-like/#findComment-1073996 Share on other sites More sharing options...
yolop Posted June 19, 2010 Author Share Posted June 19, 2010 To use any api you will have to jump through some hurdles, and will include reading some of their manuals... But a quick google provided: http://www.whenpenguinsattack.com/2006/10/05/how-to-use-the-facebook-api/ I've never used facebook api specificly so... yeh i tried to do this but it dont work <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({appId: "********", status: true, cookie: true, xfbml: true}); }; (function() { var e = document.createElement("script"); e.async = true; e.src = document.location.protocol +"//connect.facebook.net/en_US/all.js"; document.getElementById("fb-root").appendChild(e); }()); </script> <?php echo file_get_contents('http://www.facebook.com/plugins/like.php?href=www.gmail.com'); ?> Quote Link to comment https://forums.phpfreaks.com/topic/205162-want-to-check-how-much-like/#findComment-1074446 Share on other sites More sharing options...
yolop Posted June 19, 2010 Author Share Posted June 19, 2010 please? Quote Link to comment https://forums.phpfreaks.com/topic/205162-want-to-check-how-much-like/#findComment-1074457 Share on other sites More sharing options...
Adam Posted June 20, 2010 Share Posted June 20, 2010 What's that? You need to use the facebook API!! You need to actually read how to use it!! file_get_contents() will not work!! You need to do something for yourself!! Quote Link to comment https://forums.phpfreaks.com/topic/205162-want-to-check-how-much-like/#findComment-1074616 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.