{"__v":10,"_id":"54738de0007eb108007e03fa","category":{"__v":1,"_id":"546b9088b47b5d1400109ee1","pages":["54738de0007eb108007e03fa"],"project":"545137a814af501a00b50cf9","version":"545137a814af501a00b50cfc","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-11-18T18:31:36.556Z","from_sync":false,"order":5,"slug":"social-actions","title":"Social Actions"},"parentDoc":null,"project":"545137a814af501a00b50cf9","user":"5433099f9a2b451a00ad4531","version":{"__v":11,"_id":"545137a814af501a00b50cfc","project":"545137a814af501a00b50cf9","createdAt":"2014-10-29T18:53:28.525Z","releaseDate":"2014-10-29T18:53:28.525Z","categories":["545137a814af501a00b50cfd","545138eaa66f020800dbab4a","546b9072b47b5d1400109edf","546b9082b47b5d1400109ee0","546b9088b47b5d1400109ee1","546b909462515a14007ebc43","546b90a0b47b5d1400109ee2","546ced235884600e007a92f6","5481008eea7fd40b00cd7c2b","573b9d83ee2b3b220042291f","57be1efa15efc70e006a5f99"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":["55269ef1b87cef230047be42","56314137fc94aa0d00e9b522","5773be57255e820e00e1cce0"],"next":{"pages":[],"description":""},"createdAt":"2014-11-24T19:58:24.060Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"basic_auth":false,"results":{"codes":[]},"settings":"","try":true,"auth":"never","params":[],"url":""},"isReference":false,"order":0,"body":"Yammer is all about sharing and exchanging information across applications. Use our simple lightweight social buttons to connect users and experiences.\n\nThe Yammer Share Button allows users to easily share online content to groups and coworkers on Yammer, using a browser pop up.\n\nTo 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’.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<span id=\\\"yj-share-button\\\"></span>\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\nThen place the following code at the bottom of the page before the closing </body> tag.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<script type=\\\"text/javascript\\\" src=\\\"https://s0.assets-yammer.com/assets/platform_social_buttons.min.js\\\"></script>\\n<script type=\\\"text/javascript\\\">yam.platform.yammerShare();</script>\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\nCustom button example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<script type=\\\"text/javascript\\\">\\n  var options = {\\n    customButton : true, //false by default. Pass true if you are providing your own button to trigger the share popup\\n    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)\\n    defaultMessage: 'My custom Message', //optionally pass a message to prepopulate your post\\n    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.\\n  }; \\n  yam.platform.yammerShare(options);\\n</script>\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \"<div id=\\\"yj-share-button\\\"></div>\"\n}\n[/block]\nTry it out!","excerpt":"","slug":"share-button","type":"basic","title":"Yammer Share Button"}

Yammer Share Button


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’. [block:code] { "codes": [ { "code": "<span id=\"yj-share-button\"></span>", "language": "text" } ] } [/block] Then place the following code at the bottom of the page before the closing </body> tag. [block:code] { "codes": [ { "code": "<script type=\"text/javascript\" src=\"https://s0.assets-yammer.com/assets/platform_social_buttons.min.js\"></script>\n<script type=\"text/javascript\">yam.platform.yammerShare();</script>", "language": "text" } ] } [/block] Custom button example [block:code] { "codes": [ { "code": "<script type=\"text/javascript\">\n var options = {\n customButton : true, //false by default. Pass true if you are providing your own button to trigger the share popup\n 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)\n defaultMessage: 'My custom Message', //optionally pass a message to prepopulate your post\n 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.\n }; \n yam.platform.yammerShare(options);\n</script>", "language": "text" } ] } [/block] [block:html] { "html": "<div id=\"yj-share-button\"></div>" } [/block] Try it out!