Skip to main content

Facebook like views integration

An article from ComputerMinds - Building with Drupal in the UK since 2005
12th Nov 2010

Steven Jones

Senior Developer
Hey, you seem to look at this article a lot! Why not Bookmark this article so you can find it easily in the future?

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 :(

Hi, thanks for reading

ComputerMinds are the UK’s Drupal specialists with offices in Bristol and Coventry. We offer a range of Drupal services including Consultancy, Development, Training and Support. Whatever your Drupal problem, we can help.