Forum Discussion

Niclas Carlsson's avatar
Niclas Carlsson
Brass Contributor
Mar 22, 2017

Yammer integration for comments on news pages

Hi 

 

We're looking into using a SharePoint Framework web part that we can add to pages for handling comments on the page. The default Yammer web part can only connect to a feed, group or person but as we would like the comments to be specific for each page we will use the Yammer embed feed with an Open graph object (https://developer.yammer.com/docs/embed). One drawback with that approach is that each page is added as link attachment to each post and it takes up quite much space in the conversation. As the embed feed is in an iFrame we can't manipulate the css and hide that object in web part. So I'm basically looking for a solution for hiding that link when we are in SharePoint. It doesn't matter how it looks in Yammer. 

 

7 Replies

  • Marwen KAROUI's avatar
    Marwen KAROUI
    Copper Contributor

    HI

     

    you can use object properties like this : 

     

    yam.connect.embedFeed({
    container: "#YammerComments",
    network:'xxxxxx.onmicrosoft.com',
    feedType: "open-graph",
    config: {
    header: true,
    footer: true
    },
    objectProperties: {
    title:pageTitle,
    description:page,
    url:pageUrl,
    }
    });
  • Karen Wild's avatar
    Karen Wild
    Copper Contributor

    Niclas - hope you dont mind I added a UserVoice improvement request refering to your post 

    https://yammer.uservoice.com/forums/399627-yammer/suggestions/19399138-improve-the-comments-box-when-integrated-on-news-p

  • I assume you've already looked at this: https://developer.yammer.com/docs/commenting and it didn't work.
    • Niclas Carlsson's avatar
      Niclas Carlsson
      Brass Contributor

      Hi

       

      Yes I have done that. Had hoped that showOpenGraphPreview would have solved it but it only shows/hides the link before commenting.

       

      /Niclas

      • Peter Stilgoe's avatar
        Peter Stilgoe
        Iron Contributor

        Hi

         

        Same issue here, anyone found a way to resolve it yet ?

         

         

        Cheers

Resources