Jump to content

want to check how much like


yolop

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/205162-want-to-check-how-much-like/
Share on other sites

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...

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');

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.