Jump to content

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

?>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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