Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook "Like" button callback

I am interested in implementing the facebook "Like" button, but I would like to know what user is clicking on this button so I can get some useful information from this. From what I have read, facebook is leaving us in the dark on who is clicking on what. ANyone have an idea on how I could track which user clicked on a like button for a particular product?

UPDATE: The like button is rendered by facebook either through an iFrame, or through xFBML. This is why it is difficult to track who clicks on what, or embed an onclick event, etc..

like image 441
Matt Avatar asked May 09 '10 18:05

Matt


People also ask

Is Facebook doing away with the like button?

One of the biggest changes about the new Page design is that it does away with “Likes.” This came about because Likes were misrepresenting a Page's true popularity. Many Facebook users had once “Liked” a Page, but later unfollowed the Page to remove its updates from their News Feed as they outgrew their interest.

What did Facebook want to call the like button?

And despite initial lukewarm “Like” response, Facebook ended up going with the same name; “We were all stubbornly insistent that no word could be more awesome than “Awesome” and Zuck was the main person to recognize it wasn't a good choice,” confirms Facebook engineer Tom Whitnah.


2 Answers

<script>   FB.Event.subscribe('edge.create', function(href, widget) {     alert('You just liked the page!');   }); </script> 
like image 135
TLK Avatar answered Sep 16 '22 12:09

TLK


so I simply rendered a unique like button for each logged in user with a URL of www.somewebsite.com/thisIsThePageIlike/facebookUID.

won't this defeat the purpose of having a like button and mess up your facebook search ranking? Every user will be liking a different url and so facebook will think you have a ton of pages each with a single like count.

I am also having an issue with XFBML like buttons where the edge.create event isn't firing

like image 44
James Avatar answered Sep 16 '22 12:09

James