Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This happens when viewing admin/config/people/fbconnect/apperance
This happens when viewing admin/config/people/fbconnect/apperance
Comments
Comment #1
giorgio79 CreditAttribution: giorgio79 commentedNoticed this in the log entries
"Unable to load the required Facebook library, please check the README.txt for instructions on how to resolve this."
Investigating the library installation.
Comment #2
AnilM CreditAttribution: AnilM commentedI'm running into the same problem (after updating to 7.x-2.x-dev today). I was running fb connect successfully prior to updating today.
I've got facebook-php-sdk installed under the libraries folder. Not sure why it's unable to find it. On my end, It's essentially an identical configuration to what I had prior to updating today. Is there some other different configuration in the latest update?
Comment #3
giorgio79 CreditAttribution: giorgio79 commented#1318296: Facebook PHP library not found This one has a more thorough issue description lets continue there.
Comment #4
cogniven CreditAttribution: cogniven commentedWould be cleaner if the code for fbconnect_user_profile where modified to be more helpfull:
Comment #5
babusaheb.vikas CreditAttribution: babusaheb.vikas commentedwhy is there
if ($client) { // or include the getUser call inside try/catch to show more info about library call failure
it just throws the error , and the above code is still not working.
Comment #6
leewoodman CreditAttribution: leewoodman commentedIm am still getting this after the latest upgrade today
Hmmm i should have read the README.txt:
-- INSTALLATION --
1. Upload the 'fbconnect' and 'libraries' folder into your module directory and activate
the modules.
2. Upload facebook-php-sdk library (http://github.com/facebook/php-sdk/) into the libraries
folder so that it looks like 'sites/all/libraries/facebook-php-sdk/src/facebook.php'.
Lee
Comment #7
Itmman CreditAttribution: Itmman commentedGot the same error:
Fatal error: Call to a member function getUser() on a non-object in /fbconnect/fbconnect.module on line 421
downoaded last version of Libraries and uploaded facebook-php-sdk library (facebook-php-sdk-v3.1.1-25-g6c82b3f.zip) rinominated facebook-php-sdk
but still have this error
Comment #8
Konstantin Boyandin CreditAttribution: Konstantin Boyandin commentedConfirming. Using libraries 7.x-2.0-alpha2, the patch for fbconnect.module applied, but still the error
Call to a member function getUser() on a non-object in fbconnect.module
Any suggestions?
Comment #9
mrcool03988 CreditAttribution: mrcool03988 commentedCall to a member function getUser() on a non-object in /home/wm_demo2/demo2.webrmedia.com/sites/all/modules/fbconnect/fbconnect.module on line 421
This error is not even letting me enter my site. When I go to my site i.e demo2.webrmedia.com this error shows up.
Please help
Comment #10
ivanstegic CreditAttribution: ivanstegic commentedI was able to make this error go away by using the development version of the module.
Comment #11
Yuri CreditAttribution: Yuri commentedUsing the latest dev version of this module, the fatal error still appears.
The libraries seem to load fine, at least no error that the library is not found. "Facebook PHP SDK library loaded" is regularly seen in the log. The admin pages do load, but any other public page gives this fatal error.
If you still think this issue is a duplicate, please indicate why, thanks.
Comment #12
wooody CreditAttribution: wooody commentedSame problem with me too.. any way to fix that..?
Fatal error: Call to a member function getUser() on a non-object in /home/myweb/public_html/sites/all/modules/fbconnect/fbconnect.module on line 420
Comment #13
designotb CreditAttribution: designotb commentedI am also having this exact same issue.
Downloaded the facebook-php-sdk today
Installed: Libraries 7.x-2.0-alpha2, FBConnect 7.x-2.0-beta3.
All modules and libraries downloaded Mar 24, 2012
Comment #14
jcisio CreditAttribution: jcisio commentedThis is fixed in the last dev snapshot. I'll roll out beta4 later today after a few more tests.