The last 4 days I try to start my first Facebook application but everything that I try fails and I would like to have some help from someone who has developed Facebook application. Initially I tried the script that Facebook gives when a user creates a new Facebook application. The script is the following which I added after the opening .
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '1406185529679324',
xfbml : true,
version : 'v2.2'
});
// ADD ADDITIONAL FACEBOOK CODE HERE
};
(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 = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
The problem is that the window.fbAsyncInit function was never executed. I added an alert inside this function and I never saw the message. In the browser I had the following error message:
GET https://connect.facebook.net/en_US/sdk.js net::ERR_INSECURE_RESPONSE
Does anyone knows what is wrong with my application? Should I change something in the Facebook application settings?
Kind regards Aristotelis