Closed (fixed)
Project:
Drupal for Facebook
Version:
6.x-2.0-beta3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2010 at 20:17 UTC
Updated:
13 Apr 2010 at 16:39 UTC
After the last update from 6.x-2.0-beta2 to beta 3 in status report I have this error message "Facebook client API not found" but I am sure to have Facebook-platform inside modules/fb and settings.php with the right Drupal for Facebook settings and database updated. Romina
Comments
Comment #1
romina commentedOf course I have read readme.txt and cleared cache and re-saved facebook app node and re-visited themes...
Comment #2
jessan73 commentedI have the same problem for my site...I have yesterdag tried to enable fb API but it failures for me. I have done what that says in readme but error message shows "Facebook client API not found"....What can i do to solve this problem?
/Jessica
Comment #3
romina commentedOK the problem was trusting in the words "it should be found automatically".
Even if my API is under modules/fb it isn't found automatically so I have to add
$conf['fb_api_file'] = 'modules/fb/facebook-platform/facebook.php';
in my settings.php. Now it works. Thanks, Romina
Comment #4
flylinux commentedI added
$conf['fb_api_file'] = 'modules/fb/facebook-platform/php/facebook.php';
in my settings.php.
You can change the code like me.
Comment #5
Dave Cohen commentedComment #7
candygirl777 commentedWith regards to #3 & #4, be sure to put the complete path relative to your installation, ie. mine was:
$conf['fb_api_file'] = 'sites/all/modules/fb/facebook-platform/php/facebook.php';
Comment #8
js commentedHi,
Thank you for your work on this module.
I must be missing something simple and would appreciate anyone setting me straight.
/reports/status says:
Facebook Client API Not found
but it appears to me that the only problem is how
function fb_requirements
tests;
I added these debug messages:
$status = array('title' => $t('Facebook Client API'));
$fb_platform = variable_get('fb_api_file', 'facebook-platform/php/facebook.php');
dvm($fb_platform);
dvm('exists?:'.file_exists($fb_platform));
dvm('exists with pre-pended path?:'.file_exists(dirname(__FILE__).'/'.$fb_platform));
dvm('include without pre-pended path?:' . include($fb_platform));
if (file_exists($fb_platform)) {
and get these responses:
string(34) "facebook-platform/php/facebook.php"
string(8) "exists?:"
string(29) "exists with prepended path?:1"
string(33) "include without prepended path?:1"
it looks to me that the test "file_exists" fails without pre-pending the path "dirname(__FILE__)", but the include works fine.
Thanks, Jerry