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
- Drupal for Facebook project page: http://www.drupal.org/project/fb
- Drupal for Facebook home: http://www.drupalforfacebook.org - this is both a source of information and an example of Drupal for Facebook in action. Take the Drupal for Facebook Tour to learn more.
- Project issue queue: http://drupal.org/project/issues/fb
- FB Developers documentation reference
- FBML code testing console
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.
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 Keybox, 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 IDbox should also go into theAPI Keybox as well -- i.e. the two values should (now) be identical. See this image for an example.Just a heads-up.
:)
jeremy
What's the difference in between this and Facebook social plugin
I'm not sure which one to pick, seems both support fb social plugin, can any one give me a hint...
Thanks,
Sam
Enjoy with me...
I am not an expert on Drupal,
I am not an expert on Drupal, but i have tried both of them and I am very happy with the fb modul.
Everything is working quite well.
Alex
Does fb support facebook comments?
Hello all together,
first I want to mention that I'm very happy with the modul, but I now have a question:
Is there any posibility to provide facebook comments like this:
http://developers.facebook.com/docs/reference/plugins/comments/ with the module?
I have tried it different ways, but nothing worked well.
Thanks for your help!
Alex
make Drupal fb module working
1. Install the
module and all its dependencies
2. add the below piece of code at the ned of "sites/default/settings.php"
/**
* Drupal for Facebook settings.
*/
if (!is_array($conf))
$conf = array();
$conf['fb_verbose'] = TRUE; // debug output
//$conf['fb_verbose'] = 'extreme'; // for verbosity fetishists.
// More efficient connect session discovery.
// Required if supporting one connect app and different canvas apps.
//$conf['fb_id'] = '123.....XYZ'; // Your connect app's ID goes here.
// Enable URL rewriting (for canvas page apps).
include "sites/all/modules/fb/fb_url_rewrite.inc";
include "sites/all/modules/fb/fb_settings.inc";
// Header so that IE will accept cookies on canvas pages.
if (!headers_sent()) {
header('P3P: CP="We do not have a P3P policy."');
}
// end of settings.php