Forum Discussion
Yammer feed in Web Content Widget
Hi,
I tried it like this using the Yammer embed code:
<div id="embedded-feed" style="height:800px;width:400px;"></div>
<script type="text/javascript" src="https://assets.yammer.com/assets/platform_embed.js"></script>
<script type="text/javascript"> yam.connect.embedFeed({
container: "#embedded-feed",
network: "##########",
feedType: "group",
feedId: "##########",
config: {
use_sso: true // this line enables SSO
, header: true
, footer: true
, showOpenGraphPreview: false
, defaultGroupId: ########## // specify default group id to post to
}});
</script>
And tried it with and without SSO but no joy either way. Tested the code in an html file and it worked fine in my browser.
I've logged a support ticket so will see what they say...
Cheers
Mark
- Anonymous10 years agoNot applicable
Cracked it! :smileyvery-happy:
Changed tack and went for an iframe route, managed to get it working!!
<iframe class="yj-embed-widget yj-embed-feed" src="https://www.yammer.com/platform_embed/feed?container=%23embedded-feed&network=###########&network_permalink=#########&feedType=group&feedId=#########" style="border: 0px none; overflow: hidden; min-height: 26px; width: 100%; height: 100%;" name="embed-feed" id="embed-feed" frameborder="none"></iframe>
I had some issues with being able to log in to Yammer via the widget but solved these by adding powerbi.com and yammer.com to Trusted Sites.
Very happy to get this working, looks smart!!
Cheers
Mark
- IvanMislav9 years ago
Helper I
Great,
Is it maybe possible:
- To remove options to post messages and reply
- To set source only for All company or My feed
- To limit number of post shown to only latest 5, for example
- Anonymous9 years agoNot applicable
Hi,
- I don't think so
- For My Feed just remove feedType and feedID parts of the URL in the iFrame. Don't think you can specify All Company.
- I don't think so
Sorry, not much help!!
Cheers
Mark