Richmond's Write-up for DFF Troubleshooting

Problem

The errors are as follows:

  • warning: include(facebook-platform/php/facebook.php) [function.include]: failed to open stream: No such file or directory in /home1/foreignt/public_html/sites/all/modules/fb/fb.module on line 172.
  • warning: include(facebook-platform/php/facebook.php) [function.include]: failed to open stream: No such file or directory in /home1/foreignt/public_html/sites/all/modules/fb/fb.module on line 172.
  • warning: include() [function.include]: Failed opening 'facebook-platform/php/facebook.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home1/foreignt/public_html/sites/all/modules/fb/fb.module on line 172.
  • Failed to find the Facebook client libraries at facebook-platform/php/facebook.php. Read the README.txt and follow the instructions carefully.

 

 Proposed Solution:

The main problem is in the direcory - the Drupal system don't know where to locat facebook.php. By checking the directoried in bluehost, there are two facebook-platform directories namely facebook-platform and facebook-platform2. Considering that the file we need is facebook-platform/php/facebook.php, there are 2 possible options.

A. facebook-platform directory

Checking on facebook-platform folder, there is no php directory under it - only a folder named php4client with a facebook.php under it. The solution that I made is to rename php4client to php to address to the directory that the system is looking for. However, the following error occured:

Fatal error: Call to undefined method FacebookRestClient::admin_getAppProperties() in /home1/foreignt/public_html/sites/all/modules/fb/fb_app.module on line 32.

B. facebook-platform2 directory

This directory contains a php folder with a facebook.php file under it. Therefore the solution is to rename facebook-platform into facebook-platform1 and facebook-platform2 into facebook-platform. This method also gave off another error:

Failed to get application properties from Facebook: Invalid API key 101

 

Conclusion

I think that method B did the trick since facebook.php has already been found. The error mentioned is within the configuration of the module itself. However, this is just a hypothesis and it still needs to be checked.

 

Martin: I was the one who put the facebook-platform2 there, it was the old original facebook-platform folder that the folder had. If the problem is the API key I think I can take care of that.