I read the README.txt from start to finish, but I'm having a problem.

When going to my page at Facebook, I get the following error:

Fatal error: Call to undefined method Facebook::getSession() in [ROOT OF MY SERVER]/web/sites/all/modules/fb/fb.module on line 193

Can anyone help me clearing this out?

CommentFileSizeAuthor
fb_error.png223.46 KBToeterniettoe

Comments

dustyfox’s picture

I think the module still uses the version 2 SDK and that you've downloaded version 3. Go to http://github.com/facebook/php-sdk and select Switch Tags, then download and install the latest version 2 SDK in your Facebook for Drupal folder. If that doesn't help then go to you application settings (in FB), click on Advanced and deactivate "Remove Deprecated Auth Methods" that might help.

Personally I think this is a difficult module to use but I love it's potential.

good luck

Toeterniettoe’s picture

Status: Active » Closed (fixed)

Thx,
it seems to work now :)

kifuzzy’s picture

sign to find it later (sorry) and thanks for this post, it helps! me.

barsand’s picture

I'm getting the same after upgrading to 3.11. I've downgraded to 3.1o but still getting the same error message.

Fatal error: Call to undefined method Facebook::getSession() in /home/content/98/8186398/html/sites/all/modules/fb/fb.module on line 194

vinoth.3v’s picture

this same error happening on drupal 6.x-3.2-rc3 too

I am using FB SDK 3.1.1.

Sorry for not opening separate issue.