Topic-icon Use only content plugins, social network modules and easy tags.

Active Subscriptions:

None
Hi,

I would like to use only content plugins, social network modules and easy tags features of JFBConnect. It works fine.

But I don't want to let users register on my Joomla site with different social network providers, so I don't integrate buttons to login and register with facebook, twiter,...
But when I see the generated source code JFBConnect includes the code to let the login and register process in a :
<div id="fb-root" class=" fb_reset"> .....
and includes some scripts: <script type="text/javascript">jfbc.login.logout_facebook = false;.........

How can I quit all the code that I don't want to use? Is this code necesary to work content plugins, social modules and easy tags?

Thanks
Jesus
The topic has been locked.
Support Specialist
Jesus,
JFBConnect is very conservative on what it loads and how it does it. The Javascript that you mention looks like the below:
jfbc.login.logout_facebook = false;
jfbc.base = 'http://www.yourdomain.com/';
jfbc.return_url = 'LW==';
jfbc.login.scope = 'email,publish_actions';
jfbc.login.show_modal = '0';
jfbc.login.auto = '0';
That code is setting up some Javascript variables, which JFBConnect uses for things like logging in. However, those variables are not used *unless* the user is logging in. There is no extra processing required to set those variables, and it shouldn't be causing you any issues or slow-down on your site.

I hope that helps answer your question. If you really need to remove that block of code, we can help. There are features in our jfbconnect.js file that are used for the social sharing features (depending on how things are configured), so I wouldn't recommend unloading that file.

Thanks,
Alex
The topic has been locked.