Embedding yammer feed into a site is super easy and well documented.
- Embed yammer (Single Sign-On)
- Get a preview of the configuration in yammer.com/widget/configure
- Troubleshoot common issues
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.
https://gist.github.com/AnupamRanku/e135a5f1e46670bd2c3c29805d90e5f9.js
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.