Yammer integration
Asked by Christian Willoch:

We are going all-in with Confluence these days, having 2-3 pilot projects running and slowly creating awareness on wiki collaboration.

In addition to Confluence, we have used Yammer some time now. Seems like it fills a gap that cannot be filled by a wiki like Confluence. Users like it, and don't want to have it removed. As an IT administrator, I want to consider to take it up a notch and go to enterprise edition of it.

Does anybody have any experience on using these tools together in the organisation, and how to create awareness on what info goes where?

And: how to integrate, so that a Yammer feed is displayed on a Confluence Home page. Yes, I know there is a plugin for it, but it seems old and unsupported.

-Christian Willoch

CIO, Xtra personell, Norway


Answers:
author: Ellen Feaheny [AppFusions]
body: **Yammer in Confluence**Video - Available now.

[info@appfusions.com](mailto:info@appfusions.com) if you would like to trial it!

<http://youtube.com/watch?v=gpiRaGplWqQ>


author: kimberly anderson
body: Is it possible to use the Yammer embed code in Confluence on Demand version?


author: Chad Wight
body: Would love to get some guidance on some example integration approaches to yammer + Confluence/JIRA (potentially with sharepoint in the mix). We're exploring the JIVE + Atlassian as well (Ellen, thank for you assistance on this piece!), but it's looking like perhaps we're going to bring yammer online in 2014.

What approaches, successes, or confusing messages have anyone experienced with blending Atlassian and Microsoft solutions? Very curious, and insights are appreciated..

Thanks


author: Ole Kristensen
body: Something like this inside the HTML-macro would also work:

{code}

```
<script data-app-id="hyB2pTvrL36Y50py8EWj6A"src="https://assets.yammer.com/platform/yam.js"></script><script> yam.connect.embedFeed({	container: "#embedded-feed",	network: "yourdomain.com",	feedType: "group",	feedId: "595823"});</script><div id="embedded-feed"></div>
```

{code}


author: Ismael Carlo
body: I found that Yammer's JavaScript breaks when you try to put this in a user macro. This is because Confluence wraps \<!\[CDATA\]\> tags around some of the JavaScript assuming that you're using XHTML. Yammer's embed code works fine with the HTML macro, but it's a security risk to give every user on your server permission to insert HTML/JavaScript code into your pages. This opens you up to cross-site scripting attacks. So instead, I wanted to write a user macro that would allow users to embed their own Yammer newsfeeds on demand.

It took me some work, but I got it working and has been tested with Confluence 5.9.7. If you'd like to use it, check out my [blog post about the Confluence Yammer Newsfeed Macro.](http://blog.thecarlos.com/2016/04/yammer-macro-for-confluence.html)

comments: author: Sam Hall
body: Simply put a newline before the first closing script tag to avoid the buggy CDATA placement. E.g.

```
<script type="text/javascript" src="https://s0.assets-yammer.com/assets/platform_embed.js">
</script>
```


author: M A B
body: Is it possible to use the Yammer embed code in Confluence on Demand version?

comments: author: lavitz slambert
body: Nope :(.


author: ShabbirT
body: Not sure about the security stuff... but there is a way around to embed Yammer posts onto confluence space/page

Install a free macro called 'CYO Create-Your-Own' from the Atlassian marketplace.  
Use this macro to create a module with a user-defined name...  
Insert a javascript snippet somethings similar to the following snippet and save it. This will create a new macro module with the given name.

```
&lt;script type="text/javascript" src="https://XXX.assets-yammer.com/abcd.js"&gt;&lt;/script&gt;&lt;div id="embedded-feed" style="height:200px;width:500px;"&gt;&lt;/div&gt; &lt;script&gt;yam.connect.embedFeed({container: '#embedded-feed',network: 'your-domain.com' ,feedType: 'group', //other types are 'User', 'Topic'feedId: '12345'});&lt;/script&gt;
```

<br />

Check out the web page \<<https://developer.yammer.com/docs/embed>\> for how to get the above code snippet for your context.

On a Confluence page, insert a JIRA macro called 'div' and insert the 'CYO' module you created above inside the 'div' macro.


author: Chris Deptula
body: Hi, Christian...just curious if you ever integrated the two. I'm looking to do the same here, and wanted to know what your experience was.