× Joomla Facebook Connect support forum

Topic-icon Using JFBConnect with a SSL

Active Subscriptions:

None
16 years 1 month ago #3564 by mlipscomb
I'm having trouble with JFBConnect when using it on a site that utilizes an SSL certificate. What do I need to do to have the calls to FB be over HTTPS rather than HTTP?
The topic has been locked.
Support Specialist
16 years 1 month ago #3572 by alzander
Interesting dilemma. I'm assuming FB accepts HTTPS connections, but I will have to test.

Would you prefer a setting in JFBConnect to require HTTPS calls to Facebook or do you want the component to use whatever protocol is being used for your site? I assume you are getting a warning that some of the stuff on the page is insecure and that's why you are requesting this?

Any info you can give me to help my testing will be appreciated.

Thanks
The topic has been locked.
Active Subscriptions:

None
16 years 1 month ago #3626 by mlipscomb
FB transmits over HTTPS for logins and profile info by default. However, the URLs hardcoded in the extension pull from the non-secure version of FB. And yes, the warning is that there are both secure and insecure items on the page.
The topic has been locked.
Active Subscriptions:

None
16 years 1 month ago #3631 by localizit
I would also be interested in a solution to this - just purchased today and have not installed yet, but I know it's an issue that will happen. Let me know what I can do to assist in the solution.
The topic has been locked.
Support Specialist
16 years 1 month ago #3632 by alzander
I will try to look at this as soon as I can and get it into the next release. It seems fairly simple and as long as it is I should be able to add it. I will post back here when I know more.
The topic has been locked.
Active Subscriptions:

None
16 years 1 month ago #3648 by mlipscomb
Just wanted to add a few more comments on it that may help lead you down the right path. FB by default, transmits login information over HTTPS (regardless of whether or not the site uses an SSL). I changed some of the requesting URIs to FB's secure ones (which they provide in their forums) but the issue I came across was AFTER login, it was giving errors that it wasn't secure.

Off Topic: It would be great if in one of the upcoming releases you could add a redirect to VirtueMart registration. ;)
The topic has been locked.
Active Subscriptions:

None
16 years 1 month ago #3649 by localizit
When do you expect next release to come out? If it's soon, I will delay installation of the component, otherwise I will try and find a workaround.
The topic has been locked.
Support Specialist
16 years 1 month ago #3659 by alzander
We are trying to get it out as soon as we can, but it will probably be quicker if you want to try changing the code yourself.

Here are the lines I found searching through the component code that I think probably need to change:
.../components/com_jfbconnect/helpers/facebookhelper.php
"		document.namespaces.add("fb", "http://www.facebook.com/2008/fbml");n".
"		htmlElement.setAttribute('xmlns:fb', 'http://www.facebook.com/2008/fbml');n".
"<script type="text/javascript" src="http&#58;//static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"></script>n".

.../components/com_jfbconnect/views/xdreceiver/tmpl/default.php
<script src="http&#58;//static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.js" type="text/javascript"></script>

Let me know if it works.
The topic has been locked.
Active Subscriptions:

None
16 years 1 month ago #3688 by localizit
well, whatever you listed sounds same to what we have in the files.

i mean you said it needs to be changed... but how??

do we need to change this with the previous code?? if so? then the previous code looks similar to this please.

Please give comparison of what is the code in the file and whet it needs to be changed to.
along with the line numbers if possible.
The topic has been locked.
Active Subscriptions:

None
16 years 1 month ago #3689 by mlipscomb
I agree - it's not very logical to say "this is where you need to change code" and not provide the code to replace it with. :(
The topic has been locked.