{"__v":0,"_id":"547381da007eb108007e03c7","category":{"__v":6,"_id":"546b9082b47b5d1400109ee0","pages":["54737d5f1a20c70800e1895f","54737d801a20c70800e18961","54737d95007eb108007e03a8","547381da007eb108007e03c7","547382311a20c70800e1897a","55761ac11ce9e6370050137b"],"project":"545137a814af501a00b50cf9","version":"545137a814af501a00b50cfc","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-11-18T18:31:30.383Z","from_sync":false,"order":8,"slug":"yammer-embed","title":"Yammer Embed"},"parentDoc":null,"project":"545137a814af501a00b50cf9","user":"5433099f9a2b451a00ad4531","version":{"__v":11,"_id":"545137a814af501a00b50cfc","project":"545137a814af501a00b50cf9","createdAt":"2014-10-29T18:53:28.525Z","releaseDate":"2014-10-29T18:53:28.525Z","categories":["545137a814af501a00b50cfd","545138eaa66f020800dbab4a","546b9072b47b5d1400109edf","546b9082b47b5d1400109ee0","546b9088b47b5d1400109ee1","546b909462515a14007ebc43","546b90a0b47b5d1400109ee2","546ced235884600e007a92f6","5481008eea7fd40b00cd7c2b","573b9d83ee2b3b220042291f","57be1efa15efc70e006a5f99"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-11-24T19:07:06.407Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"basic_auth":false,"try":true,"auth":"never","params":[],"url":""},"isReference":false,"order":3,"body":"The Yammer Open Graph buttons ‘Like’ and ‘Follow’ enable social interaction with internal systems and applications, like blog posts or records within CRM software. By dropping a ‘Like’ button on a page in your app, the first user to authenticate will create the Open Graph object in the Yammer network and publish an activity story relating to that action. If this is the Follow button, the user will also be subscribed to the Open Graph object and receive all updates in his or her activity stream.\n\n\n**Like Button**\n\nBy dropping a Like button on a page in your app, the first user to authenticate will create the Open Graph object (if it doesn’t already exist) in the Yammer network and publish an activity story relating to that action. Format of the story is <user> likes <object>.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/OWrTX7IqR5uU94GrpXLx_like%20(1).png\",\n        \"like (1).png\",\n        \"61\",\n        \"28\",\n        \"#58a4dc\",\n        \"\"\n      ],\n      \"caption\": \"Yammer Like Button\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"yam.connect.actionButton({\\n container: \\\"#embedded-like\\\",\\n network: \\\"fourleaf.com\\\",\\n action: \\\"like\\\"\\n});\\n \",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\n\n**Follow Button**\n\nThis will identify the page that it is on and create the OG object for the page if it doesn’t already exist. When clicked, it will create a following association between the user and the OG object resulting in the user receiving all updates to the object in his or her activity stream.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/HmubZuiBQz63XxqTEapZ_follow%20(1).png\",\n        \"follow (1).png\",\n        \"87\",\n        \"28\",\n        \"#5998d3\",\n        \"\"\n      ],\n      \"caption\": \"Yammer Follow Button\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"yam.connect.actionButton({\\n container: \\\"#embedded-follow\\\",\\n network: \\\"fourleaf.com\\\",\\n action: \\\"follow\\\"\\n});\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"open-graph-buttons","type":"basic","title":"Open Graph Buttons"}

Open Graph Buttons


The Yammer Open Graph buttons ‘Like’ and ‘Follow’ enable social interaction with internal systems and applications, like blog posts or records within CRM software. By dropping a ‘Like’ button on a page in your app, the first user to authenticate will create the Open Graph object in the Yammer network and publish an activity story relating to that action. If this is the Follow button, the user will also be subscribed to the Open Graph object and receive all updates in his or her activity stream. **Like Button** By dropping a Like button on a page in your app, the first user to authenticate will create the Open Graph object (if it doesn’t already exist) in the Yammer network and publish an activity story relating to that action. Format of the story is <user> likes <object>. [block:image] { "images": [ { "image": [ "https://files.readme.io/OWrTX7IqR5uU94GrpXLx_like%20(1).png", "like (1).png", "61", "28", "#58a4dc", "" ], "caption": "Yammer Like Button" } ] } [/block] [block:code] { "codes": [ { "code": "yam.connect.actionButton({\n container: \"#embedded-like\",\n network: \"fourleaf.com\",\n action: \"like\"\n});\n ", "language": "text" } ] } [/block] **Follow Button** This will identify the page that it is on and create the OG object for the page if it doesn’t already exist. When clicked, it will create a following association between the user and the OG object resulting in the user receiving all updates to the object in his or her activity stream. [block:image] { "images": [ { "image": [ "https://files.readme.io/HmubZuiBQz63XxqTEapZ_follow%20(1).png", "follow (1).png", "87", "28", "#5998d3", "" ], "caption": "Yammer Follow Button" } ] } [/block] [block:code] { "codes": [ { "code": "yam.connect.actionButton({\n container: \"#embedded-follow\",\n network: \"fourleaf.com\",\n action: \"follow\"\n});", "language": "text" } ] } [/block]