The requirement was to add Yammer Share button on a web page and allow users to share on Yammer.
When I searched for Yammer Share, I found this blog which basically explains about newly introduced Yammer Share button. The code is also shared in this link, which is pretty much simple and easy to implement. However, in this approach the URL gets set to textbox by default. I was trying to find a way to pass custom message instead of the URL. This behavior is due to the code in platform_social_buttons.min.js file.
I got another option at David Peterson blog. He uses Bookmarklet to share the message. Basically you have to form the URL something like this: https://www.yammer.com/[Network]/messages/new?status=Custom%20Message#/Messages/bookmarklet?type=following
Here, replace [Network] with your network name and status parameter can have any custom message. This URL will take All Companies group (because of "type=following" parameter).
What I additionally tried:
1. I was not able to target specific group. Even though I tried passing type and feedId, it did not work.
2. I could not put hash tags. %23 is getting converted to # and page will not render.
I'll spend some more time on this and if I find any additional info, will share it here. If you have any information, please do share.
When I searched for Yammer Share, I found this blog which basically explains about newly introduced Yammer Share button. The code is also shared in this link, which is pretty much simple and easy to implement. However, in this approach the URL gets set to textbox by default. I was trying to find a way to pass custom message instead of the URL. This behavior is due to the code in platform_social_buttons.min.js file.
I got another option at David Peterson blog. He uses Bookmarklet to share the message. Basically you have to form the URL something like this: https://www.yammer.com/[Network]/messages/new?status=Custom%20Message#/Messages/bookmarklet?type=following
Here, replace [Network] with your network name and status parameter can have any custom message. This URL will take All Companies group (because of "type=following" parameter).
What I additionally tried:
1. I was not able to target specific group. Even though I tried passing type and feedId, it did not work.
2. I could not put hash tags. %23 is getting converted to # and page will not render.
I'll spend some more time on this and if I find any additional info, will share it here. If you have any information, please do share.
Hi - Any luck in finding a way to target an individual group?
ReplyDeleteHi Primo, I gave it a try long back with no luck. Of late, I didn't get time to check back at it.
Delete