yammer newsfeed is not rendering in SPO site home page content editor web part
-
08-01-2021 - |
Вопрос
below code is used to add a yammer newsfeed in my homepage of my spo site. but when i added inside an html file and tried to add it in a content editor web part, it failed to show :
<!DOCTYPE html>
<html>
<head>
<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: "mmycutomerrrr",
feedType: "group",
feedId: "001233444"
});
Didnt understand why its failed to render. has anyone faced this issue before?
Решение
Your code provided has no closing tags. If it is exactly as you placed it here it will not work. Replace it with:
<!DOCTYPE html>
<html>
<head>
<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: "mmycutomerrrr",
feedType: "group",
feedId: "001233444"
});
</script>
</head>
</html>
Другие советы
Try renaming your file from ".html" to ".txt" and link it to the Content Editor web part, compare the results.
Use F12 developer tools to see if there are any script errors.
About how to embed a Yammer feed into a SharePoint Online site, check the article below:
Не связан с sharepoint.stackexchange