I’m using the Facebook Registration Plugin on my site, but I’m getting security errors in Firefox (10) and Safari (5).
I have this code in HTML:
<fb:registration fields="[{'name':'name'}, {'name':'email'}, {'name':'company', 'description':'company', 'type':'text'}]" redirect-uri="http://[url removed]/" width="318" height="360"></fb:registration>
So the redirect-uri is in http. I insert the JS SDK with the code provided by Facebook:
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "http://connect.facebook.net/" + language + "/all.js#xfbml=1&appId=107844832676140";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
Everything works fine in Chrome and IE9, but I get a security warning in Firefox and Safari. In Firefox I get this error message:
“Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party.
Are you sure you want to continue sending this information?”
In both Firefox and Safari I can press ok and go ahead with posting the form. But how do I get rid of this security message? Does the page I am posting to need to be in https?
Looks like a problem with http and https.
My guess is that your page is over https, but in your code you load the facebook sdk over http, which is not a good idea…
change this:
to this: