Community Documentation

Drupal for Facebook (fb)

Last updated March 25, 2011. Created by LeeHunter on November 24, 2007.
Edited by EvanDonovan, jaypark, Dave Cohen, techninja. Log in to edit this page.

What is Drupal for Facebook?

Drupal for Facebook is a suite of modules supporting Facebook's social plugins, and allowing you to host Facebook applications.

What can Drupal for Facebook help you do?

  • Add Like buttons, and other social plugins to your Drupal-powered website.
  • Let users authenticate to your site using their facebook username and password. This saves the user the trouble of registering with your site, and allows you to build additional social features, known as Facebook Connect.
  • Create applications on facebook.com. Powered by your Drupal server, these applications add features and content for your users while they visit facebook.com.
  • Publish content from your site to a user's Facebook stream (wall).
  • And more!

Additional Resources

Comments

Drupal for Facebook

I need a step by step help on how to setup fb module. I have gone through all the setting but I still have this error message "Drupal for Facebook has been enabled, but fb_settings.inc is not included in settings.php. Please read the README.txt."

Adofoli Edem Frank (Ghana)
Tel. +233206774279, edemicity@gmail.com

Have you checked the README

Have you checked the README that's located inside the modules folder? I'm about to install and setup this module myself and the README seems to have the information that's needed.

If I get hung up anywhere, I'll let you know so that we can figure it out

***UPDATE***

Ok, I've installed the module and set it up, as long as you follow the instructions in the README.txt that is saved inside the modules folder, you will be fine. It's actually pretty straightforward.

The only thing that hung me up for a second was the fact that it took the facebook servers about 10 min before my app had integrated throughout, so I wouldn't necessarily create the app from your drupal website for about 10 min after installing all necessary modules, creating your developer profile, and adding your app to facebook from their end.

I am because I say so

Drupal for Facebook (fb)

I was able to installed in successful, but the problem is, I can't post to my facebook fan page, how to add like and share button on my node.

my urls has change, facebook API has been added to it and it does not permit me to access some administration page, it keeps saying "Access Denied"

I look forward to hear from you.

Thanks

Adofoli Edem Frank (Ghana)
Tel. +233206774279, edemicity@gmail.com

I want to know this too...

My understanding is there is a limit of 5000 friends and the fans page can be much larger than that.

Error in Login session

After I install
I got in apache
PHP Fatal error: Call to a member function getAppId() on a non-object in /mnt/var/www/vhosts/portal/sites/all/modules/fb/fb.module on line 449, referer: http://www.mydomain.com/?q=admin%2Fpeople&render=overlay

This make I can see the user in the menu people and I can login auth
Any ideas how to solve
Thanks in advance

Problema con el settings.php

hola como estan soy de ecuador y he intentado instalar el módulo pero cada vez q modifico el settings.php no se guarda dentro del sitio y me pide que lo modifique pero no lo consigo alguien me puede ayudar

Hola mi nombre es Diego Saavedra, soy estudiante de la Universidad Nacional de Loja, curso el 6to modulo de Informática Educativa, en nuestra universidad tiene una forma de estudiar diferente a las demas universidades, puesto que aparte de toda la fundame

facebook-sdk version number is not in readme

Howdy, I'm a huge fan of this module, Dave, so thanks so much for all the hard work.
One thing, it took me a while to track down the source of this error:

Fatal error: Call to undefined method Facebook::getSession() in /.../networknorms.org/sites/all/modules/fb/fb.module on line 193

was because I had the latest facebook-php-sdk (3.01 at the time of this writing), when php-sdk v2.1.1 or 2.1.2 are required. I eventually found the issue queue here:
http://drupal.org/node/1166272
which is for the 6.x branch, where the last message said that a fix was in the readme.txt - whereas I didn't see anything in the 7.x README that indicated I needed facebook-php-sdk version 2.x. I just cross-posted there, but in case it's helpful, I'm posting here as well. Not meaning to spam, I'm just new to Drupal so I don't know the practices about where best to report issues and so on. As I said before, many thanks for the great module!

Missing API Keys

Please note that Facebook has (again) changed the structure of things so that now there is no API key issued when a new app is created (or so it would appear). That said, if you're getting confused about where to get your API key from, what to enter in the API Key box, etc., it looks like they've simply merged API Keys and App IDs into one big ball of... "fun".

So, when you're setting up an app from within Drupal and you're prompted to enter your app's information (Facebook App ID, API Key, and Secret), whatever you put in the Facebook App ID box should also go into the API Key box as well -- i.e. the two values should (now) be identical. See this image for an example.

Just a heads-up.

:)
jeremy

Want to create page through API

Hello,

I am in trouble. My client want to create page through API. He says that If a role based user login then he can create a page on Facebook and can show there all details which he has added on drupal site.
So Is this possible to create page through API ?

Please reply urgent..

Warm Regard's
Ritu Raj

Rituraj

Additional Facebook open graph tags via this module?

I believe that I have successfully installed the module and the associated libraries. So far I have only enabled the API module, the Devel module and the open-graph module.

I saw that I now have the og:title and og:url tags in my page. Is there a management screen for adding the additional open-graph tags I need? Or, is this a case where one needs nodewords module to manage metadata and the FB open-graph module just sets up some base capabilities?

Can you please comment on what may be a good resource for leveraging the open-graph components within this module?

thanks kindly

Here is something amazing

Try this blog article for a perfect tutorial http://drupalthread.blogspot.com/

Page status

About this page

Drupal version
Drupal 6.x
Audience
Developers and coders, Site administrators

Site Building Guide

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.