There are about 8 external JS files, and a number of inline statements, that seem to be inserted by FB Connect. It's not that the files are particularly big, but they increase the number of HTTP requests quite dramatically, which is a pain for site speed optimization. So I was wondering if they could be bunched together into one file before download, somehow. I'd also like to put the inline JS into an external file, and to be able to put the FB CSS in the doc head, instead of it being in the body.
I've attached a screenshot from FireBug, so you can see what I mean.
Eventually, I uninstalled the component, all plugins and modules, and made sure all were completely deleted. Then installed v2.0 stable, this time ensuring all plugins and modules were fully updated, and - problem solved. Just make sure you completely delete all traces of the pre-stable versions of JFBC before installed 2.0 stable.
I've got the FB Connect component working fine, thanks to your great tech support.
This is the error. As mentioned, the process actually works (if I refresh the error page, it gives the correct, logged in page), but obviously we need to get rid of this error. I actually PM'd you my url so you could see it for yourself.:
User and FB id found
Joomla ID not mapped to this user, updating
Fatal error: Uncaught exception 'FacebookRestClientException' with message 'Invalid parameter' in /home/russia11/public_html/jom/administrator/components/com_jfbconnect/assets/facebook-api/facebookapi_php5_restlib.php:2458 Stack trace: #0 /home/russia11/public_html/jom/administrator/components/com_jfbconnect/assets/facebook-api/facebookapi_php5_restlib.php(1232): FacebookRestClient->call_method('facebook.users....', Array) #1 /home/russia11/public_html/jom/components/com_jfbconnect/helpers/jomsocial.php(46): FacebookRestClient->users_getInfo('313827', Array) #2 /home/russia11/public_html/jom/components/com_jfbconnect/helpers/jomsocial.php(24): JFBConnectJomsocialHelper->migrateFBFieldsToJS() #3 /home/russia11/public_html/jom/components/com_jfbconnect/controller.php(97): JFBConnectJomsocialHelper->importFBProfile() #4 /home/russia11/public_html/jom/libraries/joomla/application/component/controller.php(236): JFBConnectController->loginFacebookUser() #5 /home/russia11/public_html/jom/components/com_jfbconnect/jfbconnect.php( in /home/russia11/public_html/jom/administrator/components/com_jfbconnect/assets/facebook-api/facebookapi_php5_restlib.php on line 2458
Thanks for the response. The session issue seems to have been resolved (at least, I haven't seen it since upgrading). There is one persistent problem, though. When logging a new user in using Facebook Connect for the first time (i.e. this is the first time they've used the site, so the component is creating a Joomla account for them from their FB credentials), there is ALWAYS a white screen with an error (something about user mapping, I don't have the exact error message right now). However, if I click on the 'back' button, I go to the correct page, and the account has indeed been created, with avatar etc. So it seems like everything's ok but it's trying to do something else that then creates a problem. This is obviously a big problem. Do you know what I mean? I could PM my site details, then you could log in with FB Connect and you'll see the error.
About ceshelman's module - no, this doesn't do it. His is a comment module, effectively outsourcing comments to FB. What I want is the ability to post news to the Facebook news feed, such as "Person X has just added a new article on mysite.com", with a link to the article. This appears to be a core feature of Facebook Connect, it's just a case of being able to implement it. I can program, but only at a basic level... Do you know where I would need to insert the Facebook call so that it gets receives details of the new article when I create a new article in Joomla?
First of all - a huge thank you for this component, and its integration with JomSocial. I know it's something a lot of users want and haven't got from the JomSOcial team, so I'm sure you will find plenty of enthusiastic customers there!
All is working ok so far. A few questions/issues, though:
- When a logged in session is left for too long, it seems Facebook logs the Joomla site out, and throws an error message when trying to access the Joomla site. THe only way I could get around this was to completely close the browser to clear the session.
- My Facebook invitees didn't seem to receive their invites.
- But the main request/question is when you envisage this component being able to post to the Facebook wall/feed any new articles submitted on the site. THis would make the component perfect.
Grateful for your answer to the last point. And congratulations again on making this component.