Before I begin, I realise this is going to sound like a massive moan, but I really just need some guidance...

I've just created a clean D7 install to test FB Connect, and not only can I not get it working, I can't decipher the README instructions at all.

If I could get the module to work in D7, I'd happily provide some more verbose documentation, but from what I can tell, the README doesn't seem to apply to the current state of things, am I wrong? Here's what I've done (having already created a Facebook Developer application):

  • Gone to http://github.com/facebook/php-sdk/ and navigated to the src directory and taken a copy of facebook.php. Is that even right? I have no idea.
  • I'm using the Libraries API, so I've created a directory /sites/all/libraries/facebook-php-sdk and uploaded facebook.php into there
  • Installed Facebook Connect 7.x-2.x-dev from March 17th and enabled it
  • Ignored the error about the email field change
  • Go to the Status Report and it shows the Facebook PHP sdk is not installed
  • Go to admin/config/fbconnect and enter the Application ID, the Application Secret and save configuration

In the README, step 5 says "Enter the Connect URL on Connect settings tab (e.g. copy value from admin/settings/fbconnect field “Connect url”)."

The configuration saves, but the "Connect url" field doesn't appear to exist. It shows the label and the help text for the field, but no field. Nevertheless, if I did have a value, I can't find the "Connection settings tab" which I presume is in my Facebook app settings? I've been all through it and can't find it.

The next step, 6 says "Add your server to the Server Whitelist on Advanced settings tab on Facebook or disable Session Secret Whitelist Exception." - again, there's no "Advanced settings tab" or Server Whitelist mentioned.

When I Edit Settings in the Facebook app, the tabs (down the left) are:

About
Web Site
Facebook Integration
Mobile and Devices
Credits
Advanced

As you might tell, I'm not a developer, but I expected to be able to get the module working. Maybe the module isn't ready - maybe the documentation is wildly outdated - but I can't get even the first part to work, let alone configured and set up correctly.

What I suppose I'm asking is;

  1. Can somebody who has (or knows how to get) this working for D7 please provide an 'idiots guide' step-by-step walkthrough for all the aspects of installation and configuration
  2. If I can get this working, does anybody object to me updating the documentation, because I don't feel it's adequate?

Thanks!

Comments

Danzki’s picture

read the readme file in the module folder. The readme on the module page is out of date.

Anonymous’s picture

The README in the module folder has serious mistakes,

like

  6. In order for the user's browser to correctly recognize XFBML tags, you need to specify that the page is in XHTML. 
    Edit the "page.tpl.php" file of your current theme. edit the <html> tag and add the facebook xmlns for rendering XFBML.
    
    Example : <html xmlns:fb="http://www.facebook.com/2008/fbml" 
                    xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" 
                    lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
       
    Note: The xmlns:fb attribute (xmlns:fb="http://www.facebook.com/2008/fbml") is required for proper rendering on IE. 
     (Namespaces don't have to point to a valid page, they just need to be a valid Internationalized Resource Identifier (IRI).

......D7 theme's don't have a <html> tag in page.tpl.php........

Step 7

7. Also make sure that your page.tpl.php contains <?php print $closure ?>  

Also not needed for D7....

Anonymous’s picture

This is ridiculous. The requirements in the README.txt file for the 7.x dev module say 6.x:

-- REQUIREMENTS --
PHP 5.2 or higher versions. 
Drupal 6.x. 
Facebook PHP Library: http://github.com/facebook/php-sdk/
Facebook API key: http://www.facebook.com/developers/

Clearly some work needs to be done here. I followed the directions as best as I could, and it froze my site up with an error:

Fatal error: Call to undefined method Facebook::getSession() in /[path]/public_html/sites/all/modules/fbconnect/fbconnect.module on line 400

I'd really love to get this working. Please fix these errors.

getamit’s picture

Hi Curtis this problem also comes to my setup also, in order to remove it I replace my fbconnent-php-sdk 3.x version to 2.x version becoz in 3.x version getSession() is not defined, try this it should work for you too.

jcisio’s picture

Status: Active » Fixed

Those bugs are either fixed or no longer relevant.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.