Any way to keep track of facebook likes to any page on site?

ptpatil

New member
Jun 23, 2010
445
11
0
I own a funny image site and have had some good success and user submitted content with contests that I hold on certain forums. Anyways, I have a addthis social toolbar with facebook like button and tweet button that shows how many people liked each image (each image is its own page). I want to be able to use facebook likes as a parameter in my contests for winning stuff.

How can I keep track of the likes in my SQL database? I can see that the data is there since addthis displays it, but how do I get it from addthis? Is it possible using some other method?
 


I don't think addthis will give you the info. You can get it direct from facebook though.

You should loop thru every image once per day and hit this url for each image page:

Code:
http://graph.facebook.com/?ids=http://www.wickedfire.com
You can then extract the "shares" value from the json and update your database.

edit: cron that shit yo
 
Probably not a solution for you but just sayin - if you use fbml there's a javascript callback that's called each time someone likes something.
 
Does anyone know of a way to show the individual users that liked something not just the total amount of likes?
 
I don't think addthis will give you the info. You can get it direct from facebook though.

You should loop thru every image once per day and hit this url for each image page:

Code:
http://graph.facebook.com/?ids=http://www.wickedfire.com
You can then extract the "shares" value from the json and update your database.

edit: cron that shit yo

Nice, i'll try it out, thanks