I am currently receiving this error when i try to add an app.- Fatal error: Class 'BaseFacebook' not found in /home/content/36/8546036/html/sites/all/libraries/facebook-php-sdk/src/facebook.php on line 24
I have installed Facebook libraries in the /sites/all/libraries/facebook-php-sdk/ and made the rewrite changes to the settings.php file.

I have also read all the information related installation and troubleshooting. I have reinstalled the module and even reinstalled drupal and the database. I also get the error when I try to access my configuration page. I apologize if this issue has been solved in the past, i did search for it and no luck.

Comments

Dave Cohen’s picture

Weird, do you have a whole stack trace to see exactly when it is happening?

Fire4life44’s picture

I appologize but I'm not very fluent in the programming world. How do I get a stack trace?

Dave Cohen’s picture

One way would be to edit the file where the problem is reported with something like:

print_r(debug_backtrace());

Probably you have an out of date facebook PHP SDK, or you don't have all the files there.

My facebook-php-sdk/src looks like:

[dave@pegasus facebook-php-sdk]$ ls -l src
total 48
-rw-r--r-- 1 dave users 33581 Oct 27 07:10 base_facebook.php
-rw-r--r-- 1 dave users  2886 Oct 27 07:10 facebook.php
-rw-r--r-- 1 dave users  7505 Oct 27 07:10 fb_ca_chain_bundle.crt
Fire4life44’s picture

I do have three files there. base_book.php, facebook.php, and another file that is a certificate. Also the debug should be pasted into the facebook.php file? And if so I assume at the very end? Once Pasted then what?