The readme.txt of the Facebook Connect module is seriously out-dated! It really needs a review concerning the FB updates.

Now, the real problem: I have installed the module, inserted my appID and all that, but when in /admin/config/people/fbconnect I click on 'appearance' I get this fatal error:

Fatal error: Call to a member function getUser() on a non-object in /customers/denotenbalkers.be/denotenbalkers.be/httpd.www/sites/all/modules/fbconnect/fbconnect.module on line 421

When I click on 'app settings' it shows me the notice: "Ensure that you entered valid api keys." but those keys ARE valid. Maybe I'm missing something from the readme? Ex.:

5. Enter the Connect URL on Connect settings tab (e.g. copy value from admin/settings/fbconnect field “Connect url”). There is no such thing as a connect settings tab!

6. Add your server to the Server Whitelist on Advanced settings tab on Facebook or disable Session Secret Whitelist Exception. What am I supposed to add here? Because only the url doesn't work. I suppose an IP-address but I wouldn't know which one.

I've done all the rest, so I'm guessing that that's the problem.

EDIT / SOLUTION: The problem was that I followed the readme that was on Facebook Connect's project page. The information in there is OUT-DATED and insufficient. The readme that comes with the module itself is the one you should read!

1 Answer 1


Did you double check that you installed the Facebook PHP library correctly per the README?

2. Upload facebook-php-sdk library (http://github.com/facebook/php-sdk/) into the libraries folder so that it looks like 'sites/all/libraries/facebook-php-sdk/src/facebook.php'.

The error you are getting looks like it is coming from a library function not in memory.

You can confirm whether this is loaded or not on your admin 'status' page. You should also check the drupal logs to see if there is any more descriptive error to share.

If its in the right place but not loading, you might want to check this thread:


for advice on how to get it to work with the libraries API.

  • Hi, thanks for your quick response! I did figure it out, after I read through the readme of the module itself (I read the readme that's on the page of the module itself, which is apparently out-dated! Now I can access the settings pages, but when I click on the log-in button, it asks for permissions and when I click 'Okay' (or whatever it is) it doesn't do anything! Doesn't go to a new page or anything, just sits there.. I'm not logged in because I can't use the comments. Any ideas? Commented Feb 27, 2012 at 16:39
  • Bram - can you be more specific about what you figured out and what you did so others can benefit? Did downloading the above php-sdk address the fatal error you were getting?
    – schnippy
    Commented Feb 27, 2012 at 16:53
  • Hi schnippy. I edited my post with the solution and marked yours as correct. Should I make a new post for the problem I encounter now? Commented Feb 27, 2012 at 17:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.