我在我的網站上使用Facebook註冊插件,但我在Firefox(10)和Safari(5)中遇到安全錯誤。Facebook註冊插件安全/ https錯誤
我在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>
所以重定向-URI是HTTP。我插入JS SDK與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'));
一切都在Chrome和IE9正常工作,但我得到了Firefox和Safari安全警告。在Firefox中,我收到了以下錯誤消息:
「雖然此頁面已加密,但您輸入的信息將通過未加密的連接發送,並且很容易被第三方讀取。繼續發送這些信息?「
在Firefox和Safari中,我都可以按確定並繼續發佈表單。但是,我如何擺脫這個安全信息呢?我發佈的頁面是否需要使用https?
我查了資料,但發現沒有直接回答:https://developers.facebook.com/docs/plugins/registration/advanced/ – 2012-02-16 12:04:52