× Joomla Facebook Connect support forum

Topic-icon Fatal error: Uncaught exception 'FacebookRestClientException

Support Specialist
The below error was posted in another thread. Re-posting here for others to follow status updates if you are affected. This is not common. It ultimately seems to be a session issue with Facebook and can be caused in cases where a user is logging in/out of Facebook behind the scenes, or has been inactive for very lengthy periods of time.

There are 3 suggested temporary ways to fix this when it occurs (still testing)
1) Log back into Facebook on the actual Facebook site.
2) Close down and open back up the browser.
3) Clearing domain cookies using another method (web developer tools)

This is being investigated and will get an update out shortly which will perform more verification of the current session to make sure it is valid and doesn't throw this error.

Error message below:
Warning: Missing argument 1 for JFBConnectFacebookHelper::_getUserInfo(), called in /home/mfh/public_html/plugins/authentication/jfbconnectauth.php on line 48 and defined in /home/mfh/public_html/components/com_jfbconnect/helpers/facebookhelper.php on line 174

Fatal error: Uncaught exception 'FacebookRestClientException' with message 'Session key invalid or no longer valid' in /home/mfh/public_html/administrator/components/com_jfbconnect/assets/facebook-api/facebookapi_php5_restlib.php:2458 Stack trace: #0 /home/mfh/public_html/administrator/components/com_jfbconnect/assets/facebook-api/facebookapi_php5_restlib.php(1232): FacebookRestClient->call_method('facebook.users....', Array) #1 /home/mfh/public_html/components/com_jfbconnect/helpers/facebookhelper.php(179): FacebookRestClient->users_getInfo(NULL, Array) #2 /home/mfh/public_html/plugins/authentication/jfbconnectauth.php(48): JFBConnectFacebookHelper->_getUserInfo() #3 /home/mfh/public_html/libraries/joomla/user/authentication.php(121): plgAuthenticationJFBConnectAuth->onAuthenticate(Array, Array, Object(JAuthenticationResponse)) #4 /home/mfh/public_html/libraries/joomla/application/application.php(528): JAuthentication->authenticate(Array, Array) #5 /home/mfh/public_html/includes/application.php(187): JApplication->login( in /home/mfh/public_html/administrator/components/com_jfbconnect/assets/facebook-api/facebookapi_php5_restlib.php on line 2458
The topic has been locked.
Support Specialist
For those affected, this issue should be closed in the 2.0 release (now available as of 3/2/09). If you still experience this issue after installing the new version, please let us know as soon as possible.
The topic has been locked.
Active Subscriptions:

None
Hi Sourcecoast, are you able to say whether the fix for this issue in the component or the login module, or both? Just wondering whether to redo my login moduke with the new version of keep using my old one.

Cheers,
The topic has been locked.
Support Specialist
The fix was in the Authentication plugin and the component itself. There were other changes in the login module described in the post below. The fixes in the default.php you should probably be performed on your file even if your not using SH404, but frankly, if your site is working as-is, I'd leave it :)
The topic has been locked.
Active Subscriptions:

None
Thanks Sourcecoast, I made the SEF changes the default.php manually before it became 2.0 stable release so I will leave it for now as it seems to be working fine! Congratulations on a great product, I'll post a topic on JomSocial about this component today.
The topic has been locked.
Active Subscriptions:

None
Hi, im having the same problem... Using the latest release 2 RC3

When I arrive at the site, not logged into anything (nor facebook), I click on the Facebook Connect button. Then it pops up and I enter my Facebook Details.

Then it goes, and I get a blank screen in the little popup window.

So I close that and reload the homepage where the login module is - and click it again, and it sends me to this error below:
Mapping user
User and FB id found
Joomla ID not mapped to this user, updating
Map updated

Fatal error: Uncaught exception 'FacebookRestClientException' with message 'Invalid parameter' in /var/www/virtual/capetownalive.co.za/htdocs/administrator/components/com_jfbconnect/assets/facebook-api/facebookapi_php5_restlib.php:2458 Stack trace: #0 /var/www/virtual/capetownalive.co.za/htdocs/administrator/components/com_jfbconnect/assets/facebook-api/facebookapi_php5_restlib.php(1232): FacebookRestClient->call_method('facebook.users....', Array) #1 /var/www/virtual/capetownalive.co.za/htdocs/components/com_jfbconnect/helpers/jomsocial.php(46): FacebookRestClient->users_getInfo('530500800', Array) #2 /var/www/virtual/capetownalive.co.za/htdocs/components/com_jfbconnect/helpers/jomsocial.php(24): JFBConnectJomsocialHelper->migrateFBFieldsToJS() #3 /var/www/virtual/capetownalive.co.za/htdocs/components/com_jfbconnect/controller.php(97): JFBConnectJomsocialHelper->importFBProfile() #4 /var/www/virtual/capetownalive.co.za/htdocs/libraries/joomla/application/component/controller.php(236): JFBConnectController->loginFacebookU in /var/www/virtual/capetownalive.co.za/htdocs/administrator/components/com_jfbconnect/assets/facebook-api/facebookapi_php5_restlib.php on line 2458

Please advise what I can do...

Thanks...
The topic has been locked.
Active Subscriptions:

None
Edington, it's since moved out of RC and into a stable release. Download the new version and give it a go. Sourcecoast provided two manual hacks in another thread to fix this, but it's been taken care of for you with the stable release.
The topic has been locked.
Active Subscriptions:

None
Hi,

Thanks for the reply.. Still having this issue though and I moved onto the stable release...

Do you know which thread the hacks were in?
The topic has been locked.
Support Specialist
The stable package should have updated all of the related files, but the primary one is the JFBConnect authentication plugin. If you go to "Extension Manager"->"Install/Uninstall", and then click on the plugin tab, the "Authentication - JFBConnect Facebook" plugin should be version 2.0.2.

If you'd like to manually replace this, uninstall that file, and reinstall it. You can find the installer for it in the 'admin/packages' directory of the stable release zip.
The topic has been locked.
Active Subscriptions:

None
Hi, I'm getting this error when I click the Facebook connect button, I only downloaded the component and plugins yesterday so I'm running the latest versions. Any help? Would be nice to get it working ;)
I've tried everything suggested :(

Fatal error: Uncaught exception 'FacebookRestClientException' with message 'A session key is required for calling this method' in /home/bes49496/public_html/rateparma/administrator/components/com_jfbconnect/assets/facebook-api/facebookapi_php5_restlib.php:2458 Stack trace: #0 /home/bes49496/public_html/rateparma/administrator/components/com_jfbconnect/assets/facebook-api/facebookapi_php5_restlib.php(303): FacebookRestClient->call_method('facebook.auth.e...', Array) #1 /home/bes49496/public_html/rateparma/administrator/components/com_jfbconnect/assets/facebook-api/facebook.php(219): FacebookRestClient->auth_expireSession() #2 /home/bes49496/public_html/rateparma/components/com_jfbconnect/helpers/facebookhelper.php(185): Facebook->expire_session() #3 /home/bes49496/public_html/rateparma/components/com_jfbconnect/controller.php(47): JFBConnectFacebookHelper->logoutFacebookUser() #4 /home/bes49496/public_html/rateparma/libraries/joomla/application/component/controller.php(236): JFBConnectController->loginFacebookUser() #5 /ho in /home/bes49496/public_html/rateparma/administrator/components/com_jfbconnect/assets/facebook-api/facebookapi_php5_restlib.php on line 2458

The topic has been locked.