Frage

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?

War es hilfreich?

Lösung

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>

Andere Tipps

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:

https://support.office.com/en-us/article/embed-a-yammer-feed-into-a-sharepoint-site-4817d2fa-50f6-4f25-88a0-a312745768d4

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit sharepoint.stackexchange
scroll top