Embed Yammer Feed – what if it’s blocked?

Embedding yammer feed into a site is super easy and well documented.

There are many scenarios where the yammer feed might throw error. For example:

  • If the user does not have any yammer account yet
  • If yammer is blocked in a particular network etc.

The following JavaScript snippet will gracefully hide the yammer feed error and will show a user-friendly message.


Listening to the error event can be another alternative option but keep in mind, if yammer is blocked, the callback method will never be invoked.