Created
June 3, 2017 21:48
-
-
Save bussiere/5a1abe73c80f18190d0383d174be292f to your computer and use it in GitHub Desktop.
geekzone.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Your Website Title</title> | |
<!-- You can use open graph tags to customize link previews. | |
Learn more: https://developers.facebook.com/docs/sharing/webmasters --> | |
<meta property="og:url" content="http://www.your-domain.com/your-page.html" /> | |
<meta property="og:type" content="website" /> | |
<meta property="og:title" content="Your Website Title" /> | |
<meta property="og:description" content="Your description" /> | |
<meta property="og:image" content="http://www.your-domain.com/path/image.jpg" /> | |
</head> | |
<body> | |
<script type="text/javascript" src="https://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script> | |
window.fbAsyncInit = function() { | |
FB.init({ | |
appId : '132911310473896', | |
status : true, | |
xfbml : true, | |
version: 'v2.8' | |
}); | |
FB.Event.subscribe('edge.create', | |
function(response) { | |
alert('You liked the URL: ' + response); | |
} | |
); | |
FB.Event.subscribe('edge.remove', | |
function(response) { | |
alert('You UNliked the URL: ' + response); | |
} | |
); | |
}; | |
(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#xfbml=1&version=v2.9&appId=132911310473896"; | |
fjs.parentNode.insertBefore(js, fjs); | |
}(document, 'script', 'facebook-jssdk')); | |
</script> | |
<!-- Load Facebook SDK for JavaScript --> | |
<div id="fb-root"></div> | |
<!-- Your like button code --> | |
<div class="fb-like" data-href="https://www.facebook.com/SidAliceFreak/" data-layout="button_count" data-action="like" data-size="large" data-show-faces="true" data-share="true" ></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment