Skip to content

Instantly share code, notes, and snippets.

@aoberoi
Created May 21, 2012 23:58
Show Gist options
  • Save aoberoi/2765519 to your computer and use it in GitHub Desktop.
Save aoberoi/2765519 to your computer and use it in GitHub Desktop.
something to do with facebook sharing.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Page Title</title>
</head>
<body>
<div id="fb-root"></div>
<script>(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 = "http://connect.facebook.net/en_US/all.js#xfbml=1&appId=333001253396957";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
function clicky() {
FB.ui({
method: 'send',
name: 'People Argue Just to Win',
link: 'http://www.nytimes.com/2011/06/15/arts/people-argue-just-to-win-scholars-assert.html',
to: '11674',
});
}
</script>
<a href="#" onclick="clicky();">Click</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment