Share Plugin Configuration - Adding a social network


Adding a social network

You can add social networks to the Share plugin by adding it to the "config" Flashvar object and listing it in the "socialNetworks" Flashvar:
In the example below, the Pinterest social network was added to the Share plugin:


Sample code for Share configuration:
kWidget.featureConfig({
		'targetId': 'kdp',
		'wid': '_243342',
		'uiconf_id' : '21099702',
		'entry_id' : '1_sf5ovm7u',
		'readyCallback': onReadyCallback,
		'flashvars': {
			'share': {
				'plugin': true,
				'parent': "topBarContainer",
				'order': 3,
				'socialShareURL': 'smart',
				'socialNetworks': 'facebook,pinterest,twitter,googleplus,linkedin',
				'shareConfig': {
					"facebook": {
						"name": "Facebook",
						"icon": "",
						"cssClass": "icon-share-facebook",
						"template": "https://www.facebook.com/sharer/sharer.php?u={share.shareURL}",
						"redirectUrl": 'fb://feed/'
					},
					"pinterest": {
						"name": "Pinterest",
						"icon": "http://projects.kaltura.com/amir/pinterest_blue36x36.png",
						"cssClass": "",
						"template": "http://pinterest.com/pin/create/button/?url={share.shareURL}&media={mediaProxy.entry.thumbnailUrl}/width/400&description={mediaProxy.entry.description}",
						"redirectUrl": ''
					},
					"twitter": {
						"name": "Twitter",
						"icon": "",
						"cssClass": "icon-share-twitter",
						"template": "https://twitter.com/share?url={share.shareURL}",
						"redirectUrl": 'https://twitter.com/intent/tweet/complete?,https://twitter.com/intent/tweet/update'
					},
					"googleplus": {
						"name": "Google+",
						"icon": "",
						"cssClass": "icon-share-google",
						"template": "https://plus.google.com/share?url={share.shareURL}",
						"redirectUrl": 'https://plus.google.com/app/basic/stream'
					},
					"email": {
						"name": "Mail",
						"icon": "",
						"cssClass": "icon-share-email",
						"template": "mailto:?subject=Check out {mediaProxy.entry.name}&body=Check out {mediaProxy.entry.name}: {share.shareURL}",
						"redirectUrl": ''
					},
					"linkedin": {
						"name": "LinkedIn",
						"icon": "",
						"cssClass": "icon-share-linkedin",
						"template": "http://www.linkedin.com/shareArticle?mini=true&url={share.shareURL}",
						"redirectUrl": ''
					}
				}
			},
			'topBarContainer.plugin': true
		}
	});
	
});