Hi all! I'm only just starting to use Facebook features and so far I've just been using iFrames for like buttons but it's totally impractical. I was wondering if there's any way I can actually retrieve the most liked pages from my domain? Is there any way to do this? If so how? I'd need to be told in simple terms as I'm a newbie to the FB API's.. Thanks a lot! Chuckun
I know you can make queries with FQL about WHO liked certain pages... you may want to look around to see if you can do a GROUP BY query for the whole domain. http://developers.facebook.com/docs/reference/fql/
Awesome, thanks a lot Shawn! I hope I can find something - it'd make my life so much easier if I could! Just to be sure we're on the same wavelength so I don't get too confused, i'm talking about a similar scenario to you trying to integrate a "most liked threads" section on here determined by the facebook like plugin.. Chuckun
Hmmm.. I'm still not totally sure if this is possible.. I'm starting to really wish I'd paid attention to the FB APIs from the beginning.. Looks like I'm gonna have to fully understand the usage of the Graph API alongside FQL before I can get to these depths.. I'll stick to my on-site data for now and pull the most viewed pages instead of most liked until I can get my head around this.. However if anybody figures out how to do this PLEASE let me know! Thanks a bunch, Chuckun
I am actually investigating this also myself now. Looking into something like a facebook -> tweetmeme kind of layout that can display most liked articles/blog post/etc. I think however it is only possible by adding an extra line of code to the original fb script to call home [your site] but who would be willing to go through that hassle on your behalf and you would leave out a lot of sites that would not use it.
I've been looking into making an FQL query to search the link_stat table where url= wildcard of my url.. FQL doesn't allow LIKE or wildcards.. But there may be a way using PHP but I'm unsure as of yet.. I've not had much time since my last post!
Yes, this can absolutely be done, here are two different ways to do it: 1. You can access the site's object in the Graph and get the current "Fan count". i.e. http://graph.facebook.com/http://google.com. Note that you will need an oauth token to do this. This is definitely the most accurate way of getting a page's Likes. 2. You can also use the javascript SDK to detect when a user clicks the Like button and then make an ajax call in the background to a php page that adds to a counter or does whatever you want it to. You can also detect when a user Unlikes a page too.
'm talking about a similar scenario to you trying to integrate a "most liked threads" section on here determined by the facebook like plugin..