Skip to content

Instantly share code, notes, and snippets.

@lexfrl
Last active August 29, 2015 14:19
Show Gist options
  • Select an option

  • Save lexfrl/7e689478b58d7b2b6415 to your computer and use it in GitHub Desktop.

Select an option

Save lexfrl/7e689478b58d7b2b6415 to your computer and use it in GitHub Desktop.
<script dangerouslySetInnerHTML={{__html: `
window.fbAsyncInit = function() {
FB.init({
appId : 'your-app-id',
xfbml : true,
version : 'v2.3'
});
};
(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'));
`}} />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment