While trying to configure Drupal for Facebook, I followed the readme and copied their code into my settings.php and placed the facebook-php-sdk file into the stated location under sites/all/libraries but I still get this error:

Failed to find the Facebook client libraries at sites/all/libraries/facebook-php-sdk/src/facebook.php. Read the README.txt and follow the instructions carefully.

I went to publichtml\sites\all\libraries\facebook-php-sdk-master\src and www\sites\all\libraries\facebook-php-sdk-master\src to check if facebook.php exists to be sure and it's there.

  • Please run a quick check on the list of steps stated in the README.txt once and If you have done all the steps and still you are getting the error then check for folder/files permissions in libraries/facebook-php-sdk. – Bala Varadarajan Jan 24 '14 at 9:23

It's looking for the file in sites/all/libraries/facebook-php-sdk/src/facebook.php, while your file exists in publichtml/sites/all/libraries/facebook-php-sdk-master/src/facebook.php and www/sites/all/libraries/facebook-php-sdk-master/src/facebook.php. The difference is between facebook-php-sdk and facebook-php-sdk-master.

Change the folder name from facebook-php-sdk-master to facebook-php-sdk.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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