문제

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:

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top