Yammer Share Button with Default Group and attachments

%3CLINGO-SUB%20id%3D%22lingo-sub-64662%22%20slang%3D%22en-US%22%3EYammer%20Share%20Button%20with%20Default%20Group%20and%20attachments%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64662%22%20slang%3D%22en-US%22%3E%3CP%3EI%20want%20to%20add%20a%20functionality%20to%20my%26nbsp%3BGoogle%20Chrome%20Plugin%20which%20will%20help%20users%20to%20POST%20messages%20into%20a%20particular%20yammer%20group.%20User%20will%20be%20provided%20with%20a%20default%20template%20of%20the%20message%20content%20to%20make%20his%20life%20easy.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20to%20use%20Yammer%20Share%20Button%20as%20below%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3Evar%20options%20%3D%20%7B%0A%20defaultMessage%3A%20'REPLACE_ME_WITH_TITLE%20%5CnREPLACE_ME_WITH_DESCRIPTION%20%5Cn%5Cn%23some_hashtags'%2C%20%2F%2Foptionally%20pass%20a%20message%20to%20prepopulate%20your%20post%0A%20pageUrl%3A%20''%20%7D%3B%20%0Ayam.platform.yammerShare(options)%3B%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20there%20are%202%20issues%2C%3C%2FP%3E%3CP%3E1.%20It%20selects%20'All%20Company'%20as%20default%20group%20instead%20I%20want%20to%20set%20a%20different%20group%20'ITSupport'.%20Please%20note%20I%20don't%20want%20the%20whole%20company%20Yammer%20settings%20'default%20group'%20to%20be%26nbsp%3Bset%20to%20'ITSupport'%20for%20this%3C%2FP%3E%3CP%3E2.%20There%20is%20no%20way%20to%20attach%20documents%20in%20the%20popup%20opened%20when%20user%20click%20on%20'share'%20button%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20using%20embedFeed%20as%20below%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3Eyam.connect.embedFeed(%7B%0A%20container%3A%20'%23embedded-feed'%2C%0A%20network%3A%20'mynetwork.com'%2C%0A%20feedType%3A%20'open-graph'%2C%20%0A%20config%3A%20%7B%0A%20%20%20defaultGroupId%3A%201234%0A%20%7D%0A%7D)%3B%20%3C%2FPRE%3E%3CP%3EThis%20solves%20point%201%20but%20not%20point%202.%20Also%20it%20introduces%20another%20issue%20that%20I%20cannot%20use%20defaultMessage.%20I%20can%20use%20promptText%20but%20that%20cannot%20be%20multiline.%26nbsp%3B%3C%2FP%3E%3CPRE%3E%20%20%20%3CSPAN%20class%3D%22cm-property%22%3EpromptText%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22cm-string%22%3E%22Comment%20on%20this%20customer%22%3C%2FSPAN%3E%0A%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20solution%20which%20solves%20all%20these%20issues.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBelow%20is%20a%20sample%26nbsp%3Bshare%20popup%20that%20I%20expect.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22yammer%20share.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F13705i324C927C879C6198%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22yammer%20share.png%22%20alt%3D%22yammer%20share.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-64662%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYammer%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

I want to add a functionality to my Google Chrome Plugin which will help users to POST messages into a particular yammer group. User will be provided with a default template of the message content to make his life easy.

 

I tried to use Yammer Share Button as below,

 

var options = {
	defaultMessage: 'REPLACE_ME_WITH_TITLE \nREPLACE_ME_WITH_DESCRIPTION \n\n#some_hashtags', //optionally pass a message to prepopulate your post
	pageUrl: '' }; 
yam.platform.yammerShare(options);

 

But there are 2 issues,

1. It selects 'All Company' as default group instead I want to set a different group 'ITSupport'. Please note I don't want the whole company Yammer settings 'default group' to be set to 'ITSupport' for this

2. There is no way to attach documents in the popup opened when user click on 'share' button

 

I tried using embedFeed as below,

 

yam.connect.embedFeed({
	container: '#embedded-feed',
	network: 'mynetwork.com',
	feedType: 'open-graph', 
	config: {
		 defaultGroupId: 1234
	}
}); 

This solves point 1 but not point 2. Also it introduces another issue that I cannot use defaultMessage. I can use promptText but that cannot be multiline. 

   promptText: "Comment on this customer"

 

Any solution which solves all these issues.

 

Below is a sample share popup that I expect.

 

yammer share.png

 

 

 

 

1 Reply

@Ramees Keethadath I know is an old post, but I'm wondering if you found a way to change the default share setting "All Company" to something else. I don't see anything in their documentation https://developer.yammer.com/docs/share-button

 

Please let me know thanks!