SP.Publishing.SiteServicesAddins.setPlugin Method (sp.publishing)
Add the social plugin if it doesn't exist otherwise update it.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.Publishing.SiteServicesAddins.setPlugin(context)
Parameters
context
SP.ClientContext object (sp.js) objectplugin
Type: SP.Publishing.AddinPluginThe social plugin to add or update.