dparkar
dparkar

Reputation: 2132

Embed yammer group feed into jade (node.js view engine)

I am trying to embed the yammer group feed into my node.js website (Express4) jade view. Here's what I am doing in the jade view :

extends layout

block content
  h2 #{title}
  h3 #{message}
  p Use this area to provide additional information.

  script(src="https://assets.yammer.com/platform/yam.js")

  div(id="embedded-feed")

  script
      yam.connect.embedFeed(container='embedded-feed', network='mycompany.com', feedType='group', feedId='999999')

However, when I load the page I get the following pop-up :

enter image description here

Has anyone embedded yammer or other feeds into jade ?

Upvotes: 0

Views: 89

Answers (1)

Danny Amey
Danny Amey

Reputation: 46

Rather than including the script https://assets.yammer.com/platform/yam.js you should be including https://c64.assets-yammer.com/assets/platform_embed.js as per the documentation at https://developer.yammer.com/v1.0/docs/embed.

Upvotes: 0

Related Questions