Skip to content

Commit

Permalink
FB
Browse files Browse the repository at this point in the history
  • Loading branch information
tomarcafe committed Dec 20, 2016
1 parent d550550 commit d920ce9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,22 @@ class App extends React.Component {
script.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'media.reformal.ru/widgets/v3/reformal.js';
document.getElementsByTagName('head')[0].appendChild(script);
})();

window.fbAsyncInit = function() {
FB.init({
appId : '150154408771266',
xfbml : true,
version : 'v2.8'
});
};

(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'));
}
}

Expand Down

0 comments on commit d920ce9

Please sign in to comment.