Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Yammer is all about sharing and exchanging information across applications. Use our simple lightweight social buttons to connect users and experiences.
The Yammer Share Button allows users to easily share online content to groups and coworkers on Yammer, using a browser pop up.
To place a Yammer Share Button on your page, embed the following code where you want the button to appear. The button will be rendered in the element with the id ‘yj-share-button’.
<span id=\"yj-share-button\"></span>
Then place the following code at the bottom of the page before the closing tag.
<script type=\"text/javascript\" src=\"https://s0.assets-yammer.com/assets/platform_social_buttons.min.js\"></script>
<script type=\"text/javascript\">yam.platform.yammerShare();</script>
Custom button example
<script type=\"text/javascript\">
var options = {
customButton : true, //false by default. Pass true if you are providing your own button to trigger the share popup
classSelector: 'mybutton-css-class',//if customButton is true, you must pass the css class name of your button (so we can bind the click event for you)
defaultMessage: 'My custom Message', //optionally pass a message to prepopulate your post
pageUrl: 'www.microsoft.com' //current browser url is used by default. You can pass your own url if you want to generate the OG object from a different URL.
};
yam.platform.yammerShare(options);
</script>"