{% if FACEBOOK_APPID %}
<div id="fb-root"></div>
<script>(function(d){
	var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
	js = d.createElement('script'); js.id = id; js.async = true;
	js.src = "http://connect.facebook.net/en_US/all.js#xfbml=1&appId={{ FACEBOOK_APPID }}";
	d.getElementsByTagName('head')[0].appendChild(js);
	}(document));</script>
{% endif %}