210 likes | 509 Views
Yammer Embed and Open Graph. Audience and Requirements. Audience: Yammer Embed and Open Graph API are targeted at web and application developers. These technologies are also useful for Yammer users that are familiar with HTML. Requirements:
E N D
Audience and Requirements Audience: Yammer Embed and Open Graph API are targeted at web and application developers. These technologies are also useful for Yammer users that are familiar with HTML. Requirements: To understand the information presented here the reader should have a Yammer account. In addition, to debug problems with Yammer Embeds, users should have familiarity with the developer tools included with modern browsers.
Topics and Learning Objectives: This deck covers the following topics about Yammer’s Open Graph API and Embed technologies: • A basic understanding of the capabilities of each technology. • An understanding of who in your organization can use the technology. • A high-level description of how the Open Graph API and Embed technologies work. After reviewing this deck you should have the ability to: • Describe the Yammer Embed integration. • Identify places where Yammer Embed can be utilized. • Describe what the Open Graph API is, and what its benefits are. • Identify the format schema and supported object types of the Open Graph API.
Using Yammer Embed Feeds for Groups, Topics, and Users
What is a Yammer Embed? What is a Yammer Embed? • A Yammer Embed is a JavaScript-based widget that harnesses the power of your enterprise social platform by making Yammer available to users where they work online. • It provides a way to display content from Yammer in your own HTML-based app. What Does Embed Code Look Like? *.JS </>
When to Use Yammer Embeds The situations below outline when you should use a Yammer Embed and when you might want to utilize other options for Yammer integration:
The Embed User Experience • Click the Log in With Yammer button. • The authorization dialog appears. • If this is your first time logging in, a confirmation dialog will appear asking you to grant access to the Embed application. Click Allowto do so.
Embed Testing Checklist We recommend that you test the Yammer Embed you develop before deploying it to your website live. Here are some tips on Embed testing: • Test Embed outside of your environment using the Yammer Embed Widget. • Test Embed with multiple web browsers. • Review the console in the web developer provided by your browser. • Capture screenshots. • Provide a succinct reproduction of the issue.
Troubleshooting Embeds • Check your Internet Explorer settings for zone configuration, and enable http://www.yammer.com as a Trusted Site Zone. • Check Internet Explorer’s compatibility view. For more information about turning off Internet Explorer’s compatibility view, visit this Microsoft community article. • Check the pages for conflicting JavaScript code. Use a test environment such as JSFiddle to test your embed outside of the page with the JavaScript code. • Check the pages for conflicting CSS statements. Test the page by running the embed without a CSS style sheet. • For more information regarding troubleshooting of Yammer embeds, please visit the Yammer Developer’s site. *.JS, *.CSS
The Open Graph API Connecting Yammer with the Social Graph
Open Graph API Overview What’s is Yammer’s Open Graph API? • Open Graph is a light weight protocol that facilitates integrating data from different social apps into what we call the social graph. • Yammer's Open Graph API allows developers to write activity from their app into Yammer. Yammer’s Open Graph API Allows: • Rich metadata around an object identified by a URL. • Discussion mirroring between an application and Yammer through comment feeds. • Aggregation of all conversations around an object in Yammer. Examples of Uses for Yammer’s Open Graph API • In a customer relationship management (CRM) app, a sales rep updates an opportunity’s probability of closing to a lower number. • In a scheduling app, an employee creates a lunch meeting.
Open Graph Process Overview • Authenticate A User Format The User’s Data For Open Graph • Display User Data in Their Yammer Feed
User Authentication Yammer Embed handles authentication automatically. However, authentication can also be handled using OAuth. This process is similar to what is shown in Getting Started with OAuth 2.0 (Ryan Boyd, O’Reilly Media). The complete authentication flow using OAuth 2.0 is detailed at the Yammer Developers site. The documentation there provides the detail for each step of the authentication process.
The Open Graph Data Format An Open Graph activity takes the following format: <Actor> <Action> <Object> on <App Name>: <Message> ActorA Yammer user that performed an action in your app. If the actor exists in the Yammer network, the story will be delivered to the actor, and possibly others, based on delivery rules. ActionA verb that describes what happened to the object. For example: created, updated, deleted, followed, liked, and so forth. ObjectThe Open Graph object is the key piece of any activity. It represents an entity instance in your app, such as an event or a CRM record.
An Open Graph Example User activity displayed in Yammer’s Activity Stream <Actor> <Action> <Object> <Action> <Message>
The Open Graph Schema In the example, Open Graph was used to describe a lunch meeting between co-workers. However, Open Graph’s rich schema makes much more possible. If the above actions or objects are not sufficient, you can even create custom actions to better suit your needs. Click here for more information.
Ready to Build a Yammer App? The steps below can help you build an app on the Yammer platform. </> Now that you’ve built your app, make it ready for inclusion in Yammer’s App Directory and deploy it to a global audience!
Learning Review In this deck we provided information covering: • A summary of Yammer’s Embed and Open Graph API technologies. • A technical overview of both technologies. • Information on who can use these technologies to deliver better experiences. With this information you should be able: • Describe the Yammer Embed integration. • Identify places where Yammer embed can be utilized. • Describe what the Open Graph API is, and what its benefits are. • Identify the format schema and supported object types of the Open Graph API.
Additional Resources The following resources can provide you with additional information about Embed: • http://success.yammer.com/integrations/yammer-embed/ • https://developer.yammer.com/connect/ • http://github.yammer.com/ The following resources can provide you with additional information about Open Graph: • http://ogp.me/ • https://developer.yammer.com/opengraph/