Im really sorry to post this Issue as I didnt find any documentation or previous posts to solve it... When I go to Administration->Structure->Facebook Apps. .. it takes me to the Add an application page, once I click on the Add Application link it takes me to a white screen with this error : Fatal error: Call to a member function api() on a non-object in /home/hagosit1/public_html/paregios.com/principal/modules/fb/fb.module on line 586

after I reload the site it gives me this message:

Warning: include(sites/all/libraries/facebook-php-sdk/src/facebook.php) [function.include]: failed to open stream: No such file or directory en fb_api_init() (línea 358 de /home/hagosit1/public_html/paregios.com/principal/modules/fb/fb.module).
Warning: include(sites/all/libraries/facebook-php-sdk/src/facebook.php) [function.include]: failed to open stream: No such file or directory en fb_api_init() (línea 358 de /home/hagosit1/public_html/paregios.com/principal/modules/fb/fb.module).
Warning: include() [function.include]: Failed opening 'sites/all/libraries/facebook-php-sdk/src/facebook.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') en fb_api_init() (línea 358 de /home/hagosit1/public_html/paregios.com/principal/modules/fb/fb.module).
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.
Warning: include(sites/all/libraries/facebook-php-sdk/src/facebook.php) [function.include]: failed to open stream: No such file or directory en fb_api_init() (línea 358 de /home/hagosit1/public_html/paregios.com/principal/modules/fb/fb.module).
Warning: include(sites/all/libraries/facebook-php-sdk/src/facebook.php) [function.include]: failed to open stream: No such file or directory en fb_api_init() (línea 358 de /home/hagosit1/public_html/paregios.com/principal/modules/fb/fb.module).
Warning: include() [function.include]: Failed opening 'sites/all/libraries/facebook-php-sdk/src/facebook.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') en fb_api_init() (línea 358 de /home/hagosit1/public_html/paregios.com/principal/modules/fb/fb.module).
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 do have the facebook.php on that directory I actually created different directories in diferent locations just to cover all the posibilities...

I have added a few modules and solved the issues that came up to me with help of the documentation but this one is being particularly difficult to me at this time.

I am willing to provide you with all the access needed to solve this issue, so who ever gets this issue assigned please contact me at jorgeporras@msn.com (thats my personal email).

Thank You

Jorge Porras

Comments

jorgeporras’s picture

i created the src directory thats seems to be the problem but please follow up

ben2010-1’s picture

I have the same issue, has it been fixed?
thanks
Benjamin

4good’s picture

Component: User is lazy » Code
Priority: Normal » Critical
Issue tags: +fatal error, +Drupal for Facebook, +drupal 7

I have same issue...
I have resolved the other errors however...
I needed to add full path on line 358....
still getting call to a member function error

4good’s picture

Category: support » bug
4good’s picture

Status: Active » Closed (works as designed)

Please recheck that you inserted the full path correctly. and that the src folder is under facebook-sdk and not directly under library.

mak1986’s picture

It is because when you download the zip file and extract it. the folder will get this name "facebook-php-sdk-afa1534". So you will need to delete "-afa1534" before copying it to the library..

iRex’s picture

subscribe

akalevela’s picture

The issues is actually in the settings.php file. If you read the "README" file you added a line that looked like this at the end of your settings file

$conf['fb_api_file'] = 'sites/all/libraries/facebook-php-sdk/src/facebook.php';

For my installation this URL was wrong. My folder structure is "sites/all/modules/libraries..."
This removed the errors. I did also correct the fb.module URL be the errors didn't stop until i changed the settings.php file

serjas’s picture

Also if your server has no CURL , same error will appear

richmck’s picture

Also check the permissions, Make sure that the process that the web server is running as, has access to the file