Author image
Senior Developer

Facebook like views integration

Facebook is rapidly taking over the planet, and Drupal is arguably trying to do the same. Facebook added the concept of 'liking' a webpage to their array of social tools a while ago. Drupal modules quickly added the ability to 'like' content on your site.

This is all well and good, but what about getting some of that data back into Drupal?

Suppose that you have an image gallery, and you want people to be able to rate the images, by 'liking' them using Facebook like. What you'd really like to be able to do then is build a 'top rated' view of those images.

Now you can, thanks to the Views Facebook Like module; A simple little module that asks Facebook how many times the content on your site has been liked on cron and then exposes that data to views.

The code is still in alpha, and probably has a couple of buglets to take care of, but patches are welcome! Ideally after a little bit of time as a standalone module it'll get folded back into one of the Facebook integration modules.

Shame we don't have a Like button on this site :(