SOLVED

How to embed "All Company" feed on SharePoint intranet home page?

Deleted
Not applicable

HI folks, I'm trying to embed Yammer's "All Company" feed into a new SharePoint Online intranet home page (wiki page, mainly out of the box). Looks like you can't get the embed code like you can with a Yammer Group.

 

What's the best option here? Am I stuck with a redundant Yammer Group that has to have the permissions updated whenever someone joins or leaves the company? How do I keep users from being confused about two redundant feeds?

 

Any best practices or lessons learned you can share? I did some searching ahead of time and surprisingly didn't come across any posts with the same issue. So maybe I'm missing something.

 

Any help would be appreciated! Thanks!

38 Replies
Building a "My Feed" is the easiest of all, you just need to drop in your network name.

https://developer.yammer.com/docs/embed

Replacing the feed id with 'all' doesn't seem to work anymore.  Our intranet home page is now feeding the Tech Support feed instead of All Company which EVERY TEAM uses as their main feed.  What a pain.  I know some orgs are so large they wouldn't find All Company practically useful but SMEs where integration is key certainly do.  If anyone has another solution I'm all ears.

Hi

Just to say we have noticed the same issue today too. We had a Yammer web part on a SharePoint Online page pointing to a specific Yammer group which now is showing our All Company feed despite the feedid being the URL . I'm not sure exactly when it stopped working but fairly recently as it was definitely displaying before and nothing has been changed on our page.
Some of our guys had the same issues.

Try the following below:
Add Yammer to the trusted site on IE
Chrome : Also Clear cookies, cache

Managed to find a workaround and took the embed code from a group feed and changed the "FeedId" field to 'all'.  

Want to update that the Yammer modern web part now allows searching up "All Company" as a feed, and it also allows posting :D

is this being rolled out gradually? because I still cannot select All Company...

Unfortunately I can't choose the number of posts to display in the widget of the moder page

Suggestions ?

All Company is showing in Yammer webpart when you are using the Latest Version of the Yammer conversation, but we would like to have the classic conversation which is giving you the option to show the pictures.

@Alireza Rahimifarid , I agree there is a need for at least the photos to have an on or off control in the Modern Yammer webpart .

@Mikael Svenson can you let us know either how to do this or when it will be an available feature ?

I see that the Yammer Highlights webpart has photos, 
https://techcommunity.microsoft.com/t5/Microsoft-SharePoint-Blog/SharePoint-web-part-updates-Yammer-...

And that it is rolling out , but when to my tennant ...... and what layout options will there be ?

@Dorje McKinnon we've seen the new web part missing on some tenants (not sure why), but if you have the new one, you should be able to pick all company as the feed.

@Mikael Svenson , many thanks we do have the new webpart in our tennant. And we can choose the all company group.

My question is focused on when that webpart in modern will have other display options, specifically to display the photos within yammer posts.

 


@Dorje McKinnon wrote:

@Mikael Svenson , many thanks we do have the new webpart in our tennant. And we can choose the all company group.

My question is focused on when that webpart in modern will have other display options, specifically to display the photos within yammer posts.


Ah... that's hard to know - and see your point.

@Dorje McKinnon 

@Mikael Svenson ,

 

Many thanks - I'm sure this month will bring us all something interesting. :)

@Mikael Svenson / @Deleted  / @Alireza Rahimifarid 

And for anyone else who really  needs Yammer feed in modern sharepoint with photos.

I've been able to insert the classic Yammer feed into a Modern page with photos , without a software developer.

 

This is how I've done it until an SPFx Yammer feed with photos is available.

- Our environment has a modern sharepoint intranet home page, but because we use search refiners we use Classic SharePoint search.

- I created the following file

https://<ourtennant>.sharepoint.com/search/Pages/yammerfeed.aspx

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ Page Language="C#" %>
<%@ Register tagprefix="SharePoint" namespace="Microsoft.SharePoint.WebControls" assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">
<meta name="WebPartPageExpansion" content="full" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled 1</title>
<meta http-equiv="X-UA-Compatible" content="IE=10" />
<SharePoint:CssRegistration Name="default" runat="server"/>
</head>

<body>

<form id="form1" runat="server">
<div id="embedded-feed" style="height:800px;width:100%"></div>
<script type="text/javascript" src="https://s0.assets-yammer.com/assets/platform_embed.js"></script>
<script type="text/javascript">
yam.connect.embedFeed({
container: "#embedded-feed",
network: "OurTennant.co.nz",
feedType: "group",
feedId: "all",
config: {
use_sso: true,
header: false,
footer:true,
hideNetworkName:false
}
});
</script>
<a href="https://www.yammer.com/OurTennant.co.nz/#/home" target="_blank">OurTennant Yammer</a> | <a href="https://OurTennant.sharepoint.com/sites/governancecentre/Training/SitePages/What%20is%20Yammer.aspx">How to sign up for Yammer</a>

</form>

</body>

</html>

 

- On the modern sharepoint home page I used the Embed spfx webpart and inserted an iframe

<iframe width="100%" height="900px" src="https://ravensdown.sharepoint.com/search/Pages/yammerfeed.aspx" frameborder="0"></iframe>

 

- At first I got an error in the Embed webpart.
- To fix this I edited the HTML field security admin setting, and added two entries
assets-yammer.com

yammer.com
https://<OurTennant>.sharepoint.com/sites/ravnet2/_layouts/15/HtmlFieldSecurity.aspx

 

- after this the embed iframe worked fine and we have our threaded yammer view of the all company news feed with photos. 

A key requirement for our users to be OK with moving to a SharePoint modern home page.

 

>>> I hope this helps others with a similar challenge <<<

 

@Dorje McKinnon Not a bad workaround at all :) Being a developer I would have wrapped the aspx code in a part of course - but indeed a nice way of reusing the old asp.net capabilities :thumbs_up:

@Dorje McKinnonthis was a big help - it reminded me that iframing a file with the yammer embed code was what we often did in classic sites, but I've been losing my workaround chops since focusing on the neutered modern ui....and you don't need a search site to do this - any location that will take an aspx file and is accessible to your modern site collection will work. We create files like this in SP Designer in a style library folder and it works fine. 

Why the "all co" group isn't accessible in the modern yammer conversation web part is something I guess only Msft knows. Seems like a daft miss to me.   

I don't know how my IT guys did it, but they made it.
We are running in our internnal page an embeded Yammer Feed. There was some web research involved in the process, but they ended up finding out how.
If there is any where I can share the snapshot, let me know. I just wanted to shared that it is possible, and it's working.

Using the embed configure tool i was able to get the all company feed by choosing

 

Feed Type: Group

Feed ID: 0

 

yam.connect.embedFeed({
  "feedType": "group",
  "feedId": 0,
  "config": {
    "use_sso": false,
    "header": true,
    "footer": true,
    "showOpenGraphPreview": false,
    "defaultToCanonical": false,
    "hideNetworkName": false,
    "theme": "light"
  },
  "container": "#embedded-feed"
});