[Drupal] How to Display Facebook events on Drupal Site

| | 2 min read

Drupal has a lot of contributed modules. Today, Facebook is one of the most popular social networking sites and almost all the websites are connected with it. So, how can you connect your Drupal site with Facebook?

In Drupal 7 there is a contributed module called Facebook Events. This Facebook_Events module allows to show RSVP of Facebook event in Drupal node. This is very useful module for Drupal sites Facebook connection and also FBConnect module which can also be preffered as a linkage to Facebook events.

How to use Facebook event module?

The minimum requirements for enabling this module is:

  • Drupal 6.x
  • PHP 5.2 or higher

Steps for Facebook event module

  • step:1

    This module is depends on Drupal for Facebook or Facebook connect module for Facebook connection. So first install and enable any one of these module. i.e

    For Facebook event module installation the below modules enabled

    • Facebook API
    • Facebook Apps
    • Facebook Connect
    • User Management
    • Extended Permissions
  • Step:2

    Install and enable facebook event module.

  • Step:3

    Using Drupal configuration Setting the blocks Facebook Friends and Facebook Login block in proper place.

  • Step:4

    Create a new content type Events and add new text field named "fbeid". In content type creation time we will set up the content in this content type is allow to publish to Facebook or not.

  • Step:5

    Create a event in FACEBOOK to get the event ID. example: If facebook event url is

    http://www.facebook.com/event.php?eid=0000000000&ampindex=1

    , then your event id is 0000000000

  • Step:6

    Create a Event node in Drupal and use facebook event id in fbeid field.

Make sure that events_rsvp permission enabled in the Extended Permissions settings.

Reference:Drupal.org