_layouts: Setup the Facebook SDK for JavaScript

This commit is contained in:
Aminda Suomalainen 2016-07-30 20:05:37 +03:00
parent 6eb02ec230
commit a35b177278
No known key found for this signature in database
GPG Key ID: 0C207F07B2F32B67
2 changed files with 36 additions and 0 deletions

View File

@ -5,6 +5,24 @@
<body>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '1550553165222890',
xfbml : true,
version : 'v2.7'
});
};
(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>
{% include header.html %}
<div class="page-content">

View File

@ -5,6 +5,24 @@
<body>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '1550553165222890',
xfbml : true,
version : 'v2.7'
});
};
(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>
{% include header.html %}
<div class="page-content">