Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Overview

This module allows you to embed Facebook Fan Box to your site and optionally apply custom styles. It uses Facebooks fb:fan tag which allows one to pull in external CSS file.

Requirements

How to use

  1. Get facebook-php-sdk from https://github.com/facebook/facebook-php-sdk and copy it to sites/all/libraries/facebook-php-sdk
  2. Get Drupal for Facebook module from http://drupal.org/project/fb and enable it.
  3. Add app under admin/structure/fb/fb_app_create (It's important to check "Primary" under "Facebook connect"!)
  4. Add Fan Box under admin/structure/fb/fb_fan/create.
    Getting your page id is a bit tricky. It's a number eg 259175840792045. Look at the url of your facebook page. If you see a number there then you've found your page id. For example it's 8427738891 for http://www.facebook.com/pages/Drupal/8427738891. If you have page like http://www.facebook.com/nike, then you have to go to https://graph.facebook.com/nike and look up line where it says id.
  5. Fill in rest of the settings and hit save. CSS path is optional. It has to be full url and publicly accessible.
  6. Go to blocks page and enable your new fan box.

Similar projects

There is a similar project - Facebook social plugins integration - but it does not allow custom styling and is not part of "Drupal for Facebook"

GitHub

Fb_fan is also up on GitHub: https://github.com/hkirsman/fb_fan. Feel free to fork it ;)

Credits

This module was first written by another author and downloaded here: http://www.mitsuko-web-factory.com/blog/ajouter-une-facebook-fan-box-%C3... He got it from somewhere else.

Although there's not much left of the original code, kudos to the author whoever it is :)

The rewrite of this project has been sponsored by: Mekaia | Drupal website development

Project information