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

romina’s picture

Of course I have read readme.txt and cleared cache and re-saved facebook app node and re-visited themes...

jessan73’s picture

I 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

romina’s picture

Component: Code » Documentation
Status: Active » Fixed

OK 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

flylinux’s picture

Component: Documentation » Code
Assigned: Unassigned » flylinux
Category: support » bug

I added
$conf['fb_api_file'] = 'modules/fb/facebook-platform/php/facebook.php';
in my settings.php.
You can change the code like me.

Dave Cohen’s picture

Component: Code » Documentation
Assigned: flylinux » Unassigned
Category: bug » support

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

candygirl777’s picture

With 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';

js’s picture

Hi,

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