× Joomla Facebook Connect support forum

Topic-icon Error when signing into Joomla with FB

Active Subscriptions:

None
14 years 10 months ago #1450 by tmedina
I receive the following error when clicking "Login with Facebook" button:


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

None
14 years 10 months ago #1451 by tmedina
Okay -- so I have determined the first issue is with Firefox -- when using Internet Explorer I can get the button to work. I am able to get to the login/create user screen but when I enter my existing Joomla username / password and click login I am taken to a blank screen with this URL: <!-- m --><a class="postlink" href="domain.com/index.php?option=com_jfbconnect&view=loginregister">domain.com/index.php?option=com_ ... inregister

any suggestions?
The topic has been locked.
Support Specialist
14 years 10 months ago #1467 by alzander
What's your URL? A lot of times this is caused by an invalid Facebook application configuration. If you want to try something quick, try recreating a new Facebook application, only set the Canvas Callback URL and Connect URL as your home page. Leave everything else as default. Then use the new API/Secret key in JFBConnect.

See if this works, and if so, then start customizing your application as you need. Test regularly, and if you find a specific setting in the Facebook application that causes it to break, let us know. We've seen this happen before, but don't know what the 'magic' setting is that causes problems.
The topic has been locked.
Active Subscriptions:

None
14 years 10 months ago #1492 by jdundon
I just upgraded to the latest jomsocial and this is happening to me too...
The topic has been locked.
Active Subscriptions:

None
14 years 8 months ago #1829 by scottshay
Has anyone gotten any definitive solutions for this? For us, it doesn't happen in FF but does in IE (which is, of course, the browser a majority of users still use, unfortunately). We had to take off the FB login as a result. As suggested, I tried creating a bare bones FB app--accepted all of the defaults and just added the canvas and connect URL as the root of our site, but that didn't make a difference. Any help would be greatly appreciated! We'd really like to be able to use the FB login...

Thanks,
Scott
The topic has been locked.
Support Specialist
14 years 8 months ago #1854 by alzander
If you can post your site address, we can investigate further. Also, we always suggest trying on our demo site to see if you see the issue there. If so, it could be a Facebook overall error, if not, it's still likely a Facebook configuration error.

Facebook also stores quite a few cookies in the process of authentication (we have nothing to do with this). Could it be possible your disabling cookies in some way from your site?
The topic has been locked.