Skip to content

Commit

Permalink
adds additional facebook meta tags/script
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed Apr 6, 2016
1 parent 925354c commit 6d5b648
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions datausa/html/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
<meta property="og:image" content="http://{{ request.host }}/static/img/share.jpg" />
<meta property="og:description" content="{{ meta_desc }}"/>
{% endif %}
<meta property="og:url" content="{{ request.url }}"/>
<meta property="fb:app_id" content="1705281333093640"/>

<link rel="shortcut icon" type="image/png" href="/static/img/favicon.ico?v={{ g.cache_version }}">

<!-- Page title block -->
Expand Down Expand Up @@ -153,5 +156,23 @@

</script>

<script>
window.fbAsyncInit = function() {
FB.init({
appId : '1705281333093640',
xfbml : true,
version : 'v2.5'
});
};

(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>

</body>
</html>

0 comments on commit 6d5b648

Please sign in to comment.