Skip to content

Instantly share code, notes, and snippets.

@brianly
Created July 18, 2013 17:54
Show Gist options
  • Save brianly/6031434 to your computer and use it in GitHub Desktop.
Save brianly/6031434 to your computer and use it in GitHub Desktop.
How many things are wrong with this?
<!doctype html>
<html>
<head>
<script data-app-id="YOUR APP ID" src="https://assets.yammer.com/platform/yam.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
</head>
<body>
<script>
$(function() {
$('head').append('<meta property="og:title" content="Site Title" /> ');
$('head').append('<meta property="og:url" content="http://www.google.com" />');
yam.connect.actionButton({
container: "#embedded-follow",
network: "YOUR NETWORK",
action: "follow",
});
yam.connect.actionButton({
container: "#embedded-like",
network: "YOUR NETWORK",
action: "like"
});
});
</script>
<div>
<div id="embedded-follow" style="float:left"></div>
<div id="embedded-like" style="padding-left:5px"></div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment