Here is the error I get
Fatal error: Call to undefined method Facebook::getSession() in /var/www/vhosts/planestv.com/httpdocs/sites/all/modules/fbconnect/fbconnect.module on line 476
David
| Comment | File | Size | Author |
|---|---|---|---|
| #24 | fbconnect.tar_.gz Facebook PHP SDK up to date | 82.35 KB | betoaveiga |
Comments
Comment #1
vectoroc commentedMay be you use old facebook library - http://github.com/facebook/php-sdk/blob/master/src/facebook.php#L284
Comment #2
dwkitchen commentedWith the latest library 2.1.0 i get the following message
Fatal error: Call to a member function set_use_ssl_resources() on a non-object in /var/www/vhosts/***/httpdocs/sites/all/modules/fbconnect/fbconnect.module on line 427
Comment #3
j0k3z commentedI am also getting the same error (Call to undefined method Facebook::getSession() ) when I enable 2x-dev. Completely uninstalled, cleared caches, etc and still cant get it working. Gives me a white screen and the only way to access the site is to delete the module folder.
I was using a different version of the module earlier but I completely removed / uninstalled it before even messing with 2x-dev.
Comment #4
j0k3z commentedActually, the error I get is:
Fatal error: Call to a member function getSession() on a non-object in /modules/fbconnect/fbconnect.module on line 476
Comment #5
monicadearsubscribing
Comment #6
vectoroc commented@DavidPlanesTV : I've fixed it. Already in github
Comment #7
Abeaudrian commentedHi
I too am getting the below error, I accidentally put the API key in settings page for the module and tried changing it, I also recently installed the fb_social module.
How do I change the connect URL displayed on the settings page as well as the API key, which should have been the application ID, no matter what I do the API Key reinserts itself when the page refreshes, and the connect URL wouldn't update to reflect my new domain.
ERROR:
Fatal error: Call to a member function getSession() on a non-object in /home/public_html/mysite/sites/all/modules/fbconnect/fbconnect.module on line 476
Please advise how to resolve this and get the module working again.
Regards
Adrian
Comment #8
vectoroc commentedinstall last version from github
Comment #9
vectoroc commentedand say what you see on admin/reports/status page
Comment #10
vectoroc commented@DavidPlanesTV : "Call to a member function set_use_ssl_resources() on a non-object" is fixed (again in github)
Comment #11
Abeaudrian commented@ Vectoroc
Thanks for your prompt response.
I installed the latest version from github, activated it and it is working perfectly now, got the Application ID corrected, and the connect URL. It is now showing,
Facebook PHP sdk - 2.1.1 on the admin/reports/status page.
Regards
Adrian M
Comment #12
dwkitchen commentedLook forward to trying it.
Will report back
David
Comment #13
asghar commentedHi guys..
I am getting this problem with white page when i click on "Administer" link
Fatal error: Call to undefined method Facebook::getSession() in /home/hello/public_html/sites/all/modules/fbconnect/fbconnect.module on line 359
Any SOLUTION ???????
Comment #14
vectoroc commentedsee README
Comment #15
Anonymous (not verified) commentedBack in D7. Last comment "see README" does not help - what is the solution?
Using SDK 3.0.1
Comment #16
Anonymous (not verified) commentedProblem is, you must use SDK version 2.1.1.
This is NOT mentioned in the README.
Comment #17
sathyendra commentedSDK 2.1.1 worked for me.
Comment #18
outliner commentedThanks 2.1.1 worked for me too :)
Comment #19
luis_san commentedFirst: We need Drupal working again!.
=======================
in your db you need to do:
SELECT *
FROM `fb_app`
Search your active app...
UPDATE `fb_app` SET `status` = '0' WHERE `fb_app`.`fba_id` =;
Now we will have our drupal working again.
Second: We need download facebook-php-sdk into /sites/all/libraries
=========================================
3th: When we refresh page we have this error:
Failed to construct Facebook client API.: Facebook needs the CURL PHP extension. 0
Unable to get application properties. Possibly, you've given the wrong id or secret. Possibly, this server is unable to reach facebook's servers. Your application will not work properly!
Failed to get application properties (batukafb) from Facebook: Invalid API key 101
Failed to set the following properties for batukafb application. You may need to manually editing remote settings!
Array
(
[uninstall_url] => http://localhost/batuka/?q=fb_app/event/batukafb/post_remove/
[authorize_url] => http://localhost/batuka/?q=fb_app/event/batukafb/post_authorize/
[connect_url] => http://localhost/batuka/
)
Failed to set application properties on Facebook: Invalid API key 101
Failed to construct Facebook client API.: Facebook needs the CURL PHP extension. 0
Failed to construct Facebook client API.: Facebook needs the CURL PHP extension. 0
Failed to construct Facebook client API.: Facebook needs the CURL PHP extension. 0
Conclusion: Maybe our problem is we are working in localhost without CURL PHP extension.
In Ubuntu you can do:
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
regards!
luis
Comment #20
ebeyrent commentedSDK 2.1.2 works for me so far...
Comment #21
myhemant commentedYour facebook-php-sdk is not comptible with fbconnect.
pls download facebook-php-sdk from below link and use it.
http://github.com/facebook/php-sdk/tarball/v2.1.1
thanks
Comment #22
Jb33 commentedthe same bug with facebook sdk 3.1.1 for me.. :-(
Comment #23
brazorf commentedI am getting this error, with facebook sdk 3.1.1
And i am using fbconnect 6.x-2.x-beta1
Comment #24
betoaveiga@brazorf I was having the same error... I changed a few lines and worked... I had only tested login, autologin & change of sessions. I haven't tested other functionality...
I don't know how to make patches yet so I gzipped the module with the changes if you want to try it. It's working with the last php sdk (it's already there).
Remember to clear your cache, fbconnect.js changed a little too.
Hope that helps!