Skip to content

Instantly share code, notes, and snippets.

@ch1ago
Created May 15, 2016 03:59
Show Gist options
  • Save ch1ago/c08428a78fee2a035b140d350647a9d0 to your computer and use it in GitHub Desktop.
Save ch1ago/c08428a78fee2a035b140d350647a9d0 to your computer and use it in GitHub Desktop.
hello fb
<!DOCTYPE html>
<html>
<head>
<title>Hello</title>
</head>
<body>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '1715712485365376',
xfbml : true,
version : 'v2.6'
});
};
(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>
<div
class="fb-like"
data-share="true"
data-width="450"
data-show-faces="true">
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment