aboutsummaryrefslogblamecommitdiffstats
path: root/SoMA/templates/facebook_script.html
blob: 03e1a2ad26cb5c6d540d22bba82998aad8fce6cd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                 
{% if FACEBOOK_APP_ID %}
<div id="fb-root"></div>
<script>
  facebook_appId = '{{ FACEBOOK_APP_ID }}';
  (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/all.js#xfbml=1&appId=" + facebook_appId;
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
{% endif %}