I installed fbconnect with subfolder facebook-php-sdk.
When I filled "Application ID" and "Application Secret" and saved, it gave me an error that broke down my site!

It showing:

Fatal error: Call to undefined method Facebook::getSession() in /home/colic/licitacaoecontratacao.net.br/sites/all/modules/fbconnect/fbconnect.module on line 378

How can I solve this?

PS.: Module fb_social is installed.

Comments

HS’s picture

Status: Active » Closed (duplicate)
umesh sharma’s picture

Title: Fatal error: Call to undefined method Facebook::getSession() in /home/colic/licitacaoecontratacao.net.br/sites/all/modules/fbcon » Fatal error: Call to undefined method Facebook::getSession() in sites/all/modules/fbconnect/fbconnect.module on line 378

file name "facebook-php-sdk" to rename "php-sdk" in fbconnect module .

facebook-php-sdk-v3.1.1-12-gdafef11.zip

umesh sharma’s picture

Rename file "facebook-php-sdk" to php-sdk

deanflory’s picture

I had the same error then went back to this site and downloaded v2.1.1 and my Status Report no longer throws up an error:

https://github.com/facebook/php-sdk/tree/v2.1.1

alexmoreno’s picture

thanks, worked fine :-)

alexmoreno’s picture

no sorry, didn't work. The module search the code in facebook-php-sdk. If it doesnt appear here it doesn't throw any errors... but because the app is not installed

miccelito’s picture

Facebook Connect 6.x-2.0-beta1 doesn't work. Use the dev version instead, which will work with uptodate facebook-php-sdk

vmevada102’s picture

Thank you very much,

works for me completely