socialize.showShareUI JS

Skip to end of metadata
Go to start of metadata

Description

Displays a Share plugin, which allows the user to publish a newsfeed item to various social networks.

Plugin Design and Options

The default elements of the plugin are:

  • An editable text box in which the user can enter a message that will accompany the item.
  • An abbreviated preview of the newsfeed item.
  • A list of social networks from which the user can select publishing destinations. By default, the plugin displays Facebook, Twitter and LinkedIn. You may customize this list using the enabledProviders and disabledProviders parameters (see table below). *Note: the VKontakte application must be whitelisted in order for it to support share.
  • A "Publish" button. When the user presses the button, Gigya will attempt to publish the newsfeed item to each of the social networks that the user selected.

In addition, you may choose to display:

  • A "More" button - The "More" button leads to a screen presenting a selection of additional social destinations. The button is shown by default, you may hide this button using the showMoreButton parameter.
  • An "Email" button - The "Email" button leads to a screen for sharing via email. The button is hidden by default, you may add this button using the showEmailButton parameter.

The plugin may be displayed as a pop-up, in which case it looks as follows:

 

The plugin may also be displayed embedded within a container in the page (see 'containerID' parameter in the table below), in which case it looks as follows:

 

Notes:

  • If you plan on integrating the Share plugin, we highly recommend reading the Share Plugin page, which is a step-by-step guide for integrating the Share plugin, publishing feed items and also provides advanced customization options.
  • Open Graph meta tags are required for full control over content shared to Facebook and are supported by all major social networks. For more information see Sharing Content.

 

Syntax

 

Method Parameters

The following table lists the params object members:

RequiredNameTypeDescription
userActionUserAction objectThe user action to publish. The UserAction object enfolds the newsfeed data, including text, media, link, etc.  
Notes:
  • A shared URL must match the approved URLs (domains) for the specified API  key, otherwise the share will not work. 
  • When Twitter is the provider, only the Title and Link Back are posted.
actionAttributesJSON objectIn Loyalty - Gamification and User Behavior users receive points for actions performed on your site, in this case sharing. Action Attributes may be used to annotate actions with additional information, such as the section of the web site that generated the action. If you set actionAttributes, each user share action also receives an attribute, for example "tv-show":"glee". 
actionAttributes contain a JSON object comprised of a series of attribute keys (categories) with associated values. You can also use a generic "tags" key.

No more than three values can be given, they can be with a single key or each have their own key.

For more information see Variants and Action Attributes. Action attributes are later used to filter GM Plugins by a certain attribute.
Example:  {"<attribute key1>": ["<attribute value1>", "<attribute value2>"],  "<attribute key2>": "<attribute value3>" }

cidstring
A string of maximum 100 characters length. The CID sets categories for transactions that can be used later for filtering reports generated by Gigya in the "Context ID" combo box. The CID allows you to associate the report information with your own internal data. For example, to identify a specific widget or page on your site/application. You should not define more than 100 different context IDs.

Note: This parameter overrides the value of the identical parameter in Global Conf (the global configuration object). If the parameter is not set for the method, the value from Global Conf is used.

containerIDstringAn ID of a <div> element on the page in which you want to display the plugin. Not supported when the operationMode parameter is set to simpleShare.
If this parameter is not provided then the plugin will be displayed as a popup at the center of the page. Please refer to Dialog or Embedded section for extended explanation.
contextobjectA reference to a developer created object that will be passed back unchanged to the event handlers as one of the fields of the eventObj (see extended explanation in the "Plugin Events" section below).
deviceTypestringDetermines the type of the device on which the Share plugin UI is displayed i Simple Share  mode . The parameter supports the following values:
  • desktop  (default) - render the share in regular mode
  • mobile  - render the share in mobile view mode 
  • auto  - identify the device (user-agent) and if it is a mobile device, render in the mobile view mode

When Simple Share is set to deviceType mobile or auto (on mobile), clicking the email share will open the mail client rather than the Gigya share UI.

disabledProvidersstringA comma delimited list of providers that should not be displayed on this plugin, when in multiple selection mode. Valid provider names include: 'facebook', 'twitter', 'linkedin', 'qq', 'renren', 'sina', 'vkontakte'*.
For example, if you would like this plugin to show all providers icons but LinkedIn and Twitter, define: disabledProviders: "linkedin, twitter".

Note: This parameter overrides the value of the identical parameter in Global Conf (the global configuration object). If the parameter is not set for the method, the value from Global Conf is used.

enabledProvidersstringA comma delimited list of providers that should be displayed on this plugin, when in  multiple selection mode (in  Simple Share  mode, the providers that are displayed are listed in moreEnabledProviders ). Valid provider names include: 'facebook', 'twitter', 'linkedin', 'qq', 'renren', 'sina', 'vknotakte'*
For example, if you would like this plugin to show only the icons of Facebook and Twitter, define: enabledProviders: "facebook,twitter".
Note: The Share plugin may show up to six social network buttons on its main screen (more social destinations may be shown in the "More" screen).

Note: This parameter overrides the value of the identical parameter in Global Conf (the global configuration object). If the parameter is not set for the method, the value from Global Conf is used.

facebookDialogTypestringApplicable only for sharing through Facebook, and when the 'operationMode' parameter is set to 'simpleShare'.
This parameter determines which Facebook dialog will appear when clicking the share button. Options are:
  • 'share' (default value)
  • 'feed'

When using the 'share' dialog, it is required to implement open graph tags on your page, since Facebook's 'share' as well as other major social networks, use open graph tags to get the news feed item data for the shared item, rather than using data from the 'user action object'. 

grayedOutScreenOpacityinteger
(0-100)
This parameter allows you to gray-out the screen behind the plugin to emphasize the "modal" environment. Graying-out covers the entire page behind the plugin with a gray transparent layer. Using this parameter you can define the opacity of the gray layer. The value of this parameter should be a number between 0-100, where:
  • 0 - clear (not grayed out). This is the default, if this parameter is not set.
  • 100 - opaque (blacked out).
  • 20 - is our recommended value for gray-out opacity.
initialViewstringDetermines the initial view of the plugin when it loads in Multiple Selection Share mode. There are three options:
  • 'share' (default) - shows the default share view.
  • 'more' - shows the "More" view. This option is only relevant if the  showMoreButton  parameter (see below) is set to 'true'. To learn more, please read the Adding More Destinations page.
  • 'email' - shows the "Email" view. This option is only relevant if the  showEmailButton  parameter (see below) is set to 'true'. To learn more, please read the Sharing via Email page.
KeystringUsing this parameter, you can specify all the API keys of the social networks that require an API key, e.g., 'mixiKey'.
operationModestringUsing this parameter determines which Share plugin mode is displayed; either the Multiple Selection Share mode or the Simple Share mode. Please refer to the Simple Share section for an extended explanation. The optional values for this parameter are:
  • 'multiSelect' (default) - Opens the Share plugin with multi-select options, enabling the user to share on multiple social networks.
  • 'simpleShare' - Opens the Share plugin in the Simple Share mode. Note that the containerID  parameter cannot be used in this setting.
  • 'autoDetect' - Automatically opens the Share plugin according to the user's connection status; if the user is connected the Multi-select mode is displayed, and if the user is not connected the Simple Share mode is displayed. 
sessionExpirationintegerThis parameter defines the time in seconds that Gigya should keep the social network session valid for the user. To end the session when the browser closes, please assign the value '0'. If this parameter is not specified, the session will be valid forever.
shareTimeoutintegerSets a timeout to the sharing operation. Set this parameter with the maximum number of seconds to wait for sharing operation to be completed. If a timeout occurs, the Share Plugin will close and an onError event will be fired with errorCode=504001 and errorMessage="Share request timeout".
shortURLsstring
Using this parameter you may determine whether to use Gigya's URL shortening service for URLs passed in the status parameter. The optional values for this parameter are:
  • 'always' (default): always try to shorten URLs. Where providers permit, URLs are shortened based on the Data Center you are using.
    fw.to for US DC.
    shr.gs   for users of the European data center.
    vst.to for Australian DC.
  • 'whenRequired': URLs longer than 139 characters are shortened in accordance with provider preferences.
  • 'never' - never shorten URLs. Where providers permit, URLs are left untouched.

URL shortening requirements vary between providers and depend on the particular type of action and its content. URL shortening is available for the following providers:

ProviderNote
FacebookN/A
TwitterN/A
LinkedInShortened URL is posted to the social network but traffic reports show abbreviated URL (e.g., http://developers.gigya.com/display/GD/showShareBarUI+JS is abbreviated to developers.gigya.com).
MicrosoftNot for share. (Note: messenger has been replaced by microsoft, however, for backward compatibility, either can be used).
DeliciousShortened URL is posted to the social network but traffic reports show abbreviated URL (e.g., http://developers.gigya.com/display/GD/showShareBarUI+JS is abbreviated to developers.gigya.com).
WhatsAppOnly on mobile.
RedditN/A
GooglePlusN/A
Google BookmarksN/A
VKontakteN/A
nk.plN/A
XingN/A
TuentiN/A
HatenaN/A
PinterestShortened URL is posted to the social network but traffic reports show abbreviated URL (e.g., http://developers.gigya.com/display/GD/showShareBarUI+JS is abbreviated to developers.gigya.com).
BaiduN/A
FriendFeedN/A
TumblrN/A
SinaN/A
mixiN/A

When Gigya's URL shortening service is active, Gigya tracks all the traffic coming from the distributed URLs. In such case, 'Referred Traffic' reports will be available to you.

 


Note: This parameter overrides the value of the identical parameter in Global Conf (the global configuration object). If the parameter is not set for the method, the value from Global Conf is used.

showSuccessMessageBooleanUsing this parameter, you may add a success message to the share UI, notifying the user of a successful publish. The default value of this parameter is 'true'. If this parameter is set to 'true', when the syndication process completes, a message would appear to the user, saying: "Message posted successfully". This parameter is available only for the multiple selection share  mode.
showTooltipsBooleanThis parameter's default value is 'false'. If set to 'true', a tooltip will be displayed when mouse hover over a social network icon. The tooltip presents the social network's full name.
simpleShareConfigJSON objectIn Simple Share mode, when the user selects a social network for sharing, this parameter enables you to add an option to display a dialog offering to connect the user to your site through the selected social network. The simpleShareConfig parameter accepts a JSON object with the following optional members:
  • postShareAction - accepts two values: "close" (default) and "connect". When "connect" is used, then after the user clicks on a button of a social network that supports authentication, a dialog is displayed, offering to connect the user to your site with the selected social network.
  • postShareConnectCaptionText - The text that is displayed as the header of the connect dialog. The default text is "Thanks for sharing!".
  • postShareConnectBodyText - The text that is displayed in the body of the connect dialog. The default text is "To make sharing even simpler".
This parameter is relevant only when using the Simple Share mode (only if the operationMode parameter (see above) is set to 'simpleShare' or 'autoDetect').
Read more about this feature in the Post Share Connection section.
snapToElementIDstringThe ID of the HTML element that triggers the Share plugin. This element determines where the Simple Share plugin is displayed on the screen. This parameter is relevant only when using the Simple Share mode (only if the operationMode parameter is set to 'simpleShare' or 'autoDetect').
tagsstringA comma separated list of tags that are used to identify the share operation.
UserActionUserAction objectIt is possible to specify different content to publish for each social network. For this purpose, the method supports a set of parameters with the same name format: (i.e. facebook, twitter etc.) followed by "UserAction". For example: twitter UserAction - specifies the content to be used specifically when publishing to Twitter.
Each of these optional parameters accepts a UserAction object and if specified override the userAction parameter when posting to that provider. In other words, the userAction parameter (see above) specifies the default content to be used for all social networks and UserAction specifies the content to be used for the specific network.
userMessagePlaceholderstringText that appears as a placeholder for the user message in the shareUI. When the user clicks the user message input box in the shareUI, the text disappears. The default text is "Write your message...".
useHTMLBooleanDeprecated . The plugin is available in both Flash and HTML versions. By default, the HTML version is used. You may override the default behavior. Setting this parameter with the value 'false', will force Gigya to use the Flash version.
successMessageBooleanDeprecated . Using this parameter, you may add a success message to the share UI, notifying the user of a successful publication. The default value of this parameter is 'false'. If this parameter is set to 'true', when the syndication process completes, a message would appear to the user, saying: "Message posted successfully".
Auto Share related Parameters:
To learn more about this feature, please read the Automatic Sharing guide.
showAlwaysSharestringThis parameter determines whether to show an "Always share" checkbox at the bottom of the Share Plugin. If the user checks this checkbox and presses "Publish", Gigya will turn on an automatic share for this user. Each time this user repeats the same type of action, Gigya will automatically share the action without prompting the user with the Share Plugin. The type of action is determined using the autoShareActionID parameter (see below). The action will be shared on the Social Networks which the user selected when he checked the "Always share" checkbox. If a Network is no longer connected, the share will fail without notifying the user.
The optional values for this parameter are:
  • 'hide' (default) - do not display the "Always share" checkbox.
  • 'checked' - the "Always share" checkbox is displayed and checked by default.
  • 'unchecked' - the "Always share" checkbox is displayed and unchecked by default.
Note: To apply this feature, you must set both showAlwaysShare and the autoShareActionID parameters.
showNeverShareBooleanThis parameter determines whether to show a "Never share" link at the bottom of the Share plugin. If the user clicks this link, the Share plugin will close and Gigya will never prompt the Share plugin when this user repeats the same type of action. The type of action is determined using the autoShareActionID parameter (see below). Note: to apply this feature, you must set both showNeverShare and the autoShareActionID parameters.
autoShareActionIDstringUse this parameter to specify a unique identifier for the type of action that the user has performed on your site. For example: "Commented", "Rated", etc.
The user selection (Always/Never Share) will apply only to this ID.
autoShareExpirationstringUsing this parameter, you may assign an expiration date/time for the user selection for the specific autoShareActionID. The default is never expire. The expected format is the Unix time format (i.e., the number of seconds since Jan. 1st 1970).
autoShareActionDisplaystringUsing this parameter, you may change the default text shown next to the "Always share" checkbox and the "Never share" link. The autoShareActionDisplay string will be appended to the "Always share" and "Never share" strings, i.e. "Always share XXX" and "Never share XXX" where XXX is the autoShareActionDisplay string. The default value of autoShareActionDisplay is the string "this". Note: this field can be no longer than 12 characters.
Events Registration Parameters: 
onSendDonefunction refA reference to an event handler function that will be called when the process of publishing the newsfeed to all selected social networks, has finished.
onLoadfunction refA reference to an event handler function that will be called when the Plugin has finished drawing itself.
onClosefunction refA reference to an event handler function that will be called in one of the following scenarios:
  • If the plugin is displayed as a popup the event will be fired when the plugin closes.
  • If the plugin is embedded in the page the event will be fired when the user clicks a button that indicates the dialog should be closed. In this case the dialog will not hide itself automatically.
onErrorfunction refA reference to an event handler function that will be called when an error occurs.
onSendfunction refDeprecated . Please use the onSendDone event instead.

'Share' button related Parameters:

The following parameters are relevant only if you are in Multiple Selection Share mode and using the Simple Share dialog (enabled by creating a generic "Share" button).  By default the Share button opens a provider selection box, in which the last option is a "More" button which opens a second box showing all available providers. Gigya offers tens of additional destinations for social sharing. To learn more about this feature, please read the More Networks Screen page in the Developer's Guide.

showMoreButtonBooleanGigya offers tens of additional destinations for social sharing. The additional destination are provided through a "More" button on the Share Plugin. Using this parameter you can show/hide the "More" button. The default value is of this parameter is 'true' (button is shown). To learn more about this feature, see Adding More Destinations.
moreEnabledProviders, moreDisabledProvidersstring

Using these pair of parameters you may define which destination sites buttons will be displayed on the "More" screen, and also determine the order. In Simple Share mode, these are the providers that are displayed (not the  enabledProviders ). Each parameter is set with a comma separated string of destination names. These pair of parameters have similar logic to the enabledProviders and disabledProviders pair of parameters (see above). Valid destinations for the "More" screen include:
amazon, aolmail, baidu, bitly, blinklist, boxnet, currenttv, delicious, diigo, douban, dropjack, evernote, facebook, fark, faves, formspring, friendfeed, gmail, googlebookmarks, googleplus, hatena, kaboodle, linkagogo, linkedin, microsoft, mixi, mixx, myaol, netlog, newsvine, nkpl, odnoklassniki, pinterest, plaxo, qq, reddit, renren, segnalo, sina, skimbit, spiceworks, stumbleupon, technorati, tuenti, tumblr, twitter, viadeo, vkontakte, whatsapp, xing, yardbarker (Note: messenger has been replaced by microsoft, however, for backward compatibility, either can be used). 

To learn more about this feature, see Adding More Destinations.

Notes:

  • delicious is not supported on IE9.
  • Whatsapp  can only be used in iOS only, not in Android.
  • These parameters are not relevant if the showMoreButton parameter (see above) is set to 'false'.
  • In addition to the above automatic destinations, Gigya supports 150 more destinations. These destinations should be explicitly requested. Please contact us by filling in a support form on our site. You can also access the support page by clicking "Support" on the upper menu of Gigya's site. Check out the list of additional destinations here
'Email' button related Parameters: 
showEmailButtonBooleanGigya offers an option of sharing the user action via email. Sharing via email is provided through the enabling of a "Email" button on the Share Plugin. To enable the "Email" button, set this parameter to 'true' (The default value is 'false'). To learn more about this feature, see Sharing via Email.
emailBodystring (HTML)This parameter is only relevant if the showEmailButton parameter (see above) is set to 'true'. Using the "Email" screen of the Share plugin, users may send emails to selected email contacts. Gigya defines a default email body structure which is based on the User Action fields, and the message entered by the user in the Share Plugin. You may define an alternative email body, using the emailBody parameter. The email body should be defined in HTML format, and may include the following replacement strings: $sender$, $URL$, $userMsg$, $title$, $description$, and $actionLinkTitle$.
To learn more about this feature, see Sharing via Email.
dontSendEmailBooleanThis parameter is only relevant if the showEmailButton parameter (see above) is set to 'true'. Setting this parameter to 'true' instructs Gigya to not actually send an email when the user chooses to send one. You can use this parameter along with the onSendDone event data to send the actual email from your own servers. The default value is 'false' (Gigya server will send the email).
To learn more about this feature, see Sharing via Email.
emailProvidersstringA comma delimited list of email providers that should be displayed on the email screen for importing contacts. Valid provider names include: 'yahoo', 'googleplus'. When emailProviders=' ' , the Import Contacts header in the Share UI for share via email is hidden.
Auto Share related Parameters:
The following parameters are relevant only if you are in Multiple Selection Share mode. To learn more about this feature, please read the Automatic Sharing guide.
showAlwaysSharestringThis parameter determines whether to show an "Always share" checkbox at the bottom of the Share Plugin. If the user checks this checkbox and presses "Publish", Gigya will turn on an automatic share for this user. Each time this user repeats the same type of action, Gigya will automatically share the action without prompting the user with the Share Plugin. The type of action is determined using the autoShareActionID parameter (see below). The action will be shared on the Social Networks which the user selected when he checked the "Always share" checkbox. If a Network is no longer connected, the share will fail without notifying the user.
The optional values for this parameter are:
  • 'hide' (default) - do not display the "Always share" checkbox.
  • 'checked' - the "Always share" checkbox is displayed and checked by default.
  • 'unchecked' - the "Always share" checkbox is displayed and unchecked by default.
To apply this feature, you must set both showAlwaysShare and the autoShareActionID parameters.
autoShareActionIDstringUse this parameter to specify a unique identifier for the type of action that the user has performed on your site. For example: "Commented", "Rated", "Replied", "Liked", etc.
The user selection (Always Share) will apply only to this ID.
autoShareExpirationstringUsing this parameter, you may assign an expiration date/time for the user selection for the specific autoShareActionID. The default is never expire. The expected format is the Unix time format (i.e. the number of milliseconds since Jan. 1st 1970).
autoShareActionDisplaystringUsing this parameter, you may change the default text shown next to the "Always share" checkbox and the "Never share" link. The autoShareActionDisplay string will be appended to the "Always share" and "Never share" strings, i.e., "Always share XXX" and "Never share XXX", where XXX is the autoShareActionDisplay string. The default value of autoShareActionDisplay is the string "this".
Events Registration Parameters: 
onSendDonefunction refA reference to an event handler function that will be called when the process of sharing to the selected social network has finished. This does not include submitting comments; for comments use onShareButtonClicked .
Note that in some instances share actions fire OnSendDone before they have completed: for bookmark providers and emails onSendDone  will fire immediately, and for other providers it will fire after the share is complete.
onShareButtonClickedfunction refA reference to an event handler function that will be called when one of the plugin's buttons is clicked. To register a click on a provider's (native) button, use onSendDone.
onLoadfunction refA reference to an event handler function that will be called when the plugin has finished drawing itself.
onErrorfunction refA reference to an event handler function that will be called when an error occurs.

Plugin Events

An Event Handler is a JavaScript function with the following signature:

functionName(eventObj)

The single argument, eventObj, contains information about the event and has different fields for different events.

The following tables specify the list of fields available in the eventObj for each event:

onLoad Event Data

FieldTypeDescription
   
eventName string The name of the event.
source string The source plugin that generated this event. The value of this field is the name of the plugin's API method, e.g., 'showLoginUI', 'showCommentsUI', etc.
contextobject The context object passed by the application as parameter to the API method, or null if no context object has been passed.

onError Event Data

FieldTypeDescription
   
eventName string The name of the event.
source string The source plugin that generated this event. The value of this field is the name of the plugin's API method, e.g., 'showLoginUI', 'showCommentsUI', etc.
contextobject The context object passed by the application as parameter to the API method, or null if no context object has been passed.
errorCodeintegerThe result code of the operation. Code '0' indicates success, any other number indicates failure. For a complete list of error codes, see the Error Codes table.
errorMessagestringA short textual description of an error, associated with the errorCode, for logging purposes.
errorDetailsstringThis field will contain the exception info, if available.

onClose Event Data

FieldTypeDescription
   
eventName string The name of the event.
source string The source plugin that generated this event. The value of this field is the name of the plugin's API method, e.g., 'showLoginUI', 'showCommentsUI', etc.
contextobject The context object passed by the application as parameter to the API method, or null if no context object has been passed.

onSendDone Event Data

FieldTypeDescription
   
eventName string The name of the event.
source string The source plugin that generated this event. The value of this field is the name of the plugin's API method, e.g., 'showLoginUI', 'showCommentsUI', etc.
contextobject The context object passed by the application as parameter to the API method, or null if no context object has been passed.
providersstringA comma separated list of social networks to which the newsfeed was successfully published.
userMessagestringThe textual message that the user entered in the editable text box of the Share plugin (see screenshot above).
targetURLstringThe URL that was shared.
providerPostIDsJSON objectJSON objects representing the social network's post ID. Each object has the following fields:
  • provider - the social network provider (string). The optional values are: 'facebook', 'twitter'.
  • postID - the unique ID of the post (string).

onSendDone Event Data - Email

When a user chooses to share via email, he will use the Plugin's Email screen and press the 'Send' button. In this situation Gigya fires an onSendDone event with the providers field set to 'email' and with extra email related fields.

FieldTypeDescription
   
eventName string The name of the event.
source string The source plugin that generated this event. The value of this field is the name of the plugin's API method, e.g., 'showLoginUI', 'showCommentsUI', etc.
contextobject The context object passed by the application as parameter to the API method, or null if no context object has been passed.
providersstring'email'
userMessagestringThe user custom message.
recipientsarrayAn array of objects that each has a name property and an email property corresponding to the recipients of the email that has been sent.
senderstringThe name or email of the sender.

To learn more about using this event, please read Sharing via Email.

Global Event Triggered

By using this Plugin, the following global event may be triggered: onConnectionAdded.

To register an event handler use the socialize.addEventHandlers API method. Refer to the onConnectionAdded  event data. Refer to Events to learn more about how to handle events generated by the Gigya service.

Code Sample

// Constructing a UserAction Object
var act = new gigya.socialize.UserAction();
act.setTitle("This is my title");  // Setting the Title
act.setLinkBack("https://demo.gigya.com/about.php");  // Setting the Link Back
act.setDescription("This is my Description");   // Setting Description
act.addActionLink("Read More", "https://demo.gigya.com/about.php");  // Adding Action Link

// Adding a Media Item (image)
act.addMediaItem( { type: 'image', src: 'https://demo.gigya.com/images/300x250_myoss_3frames-lg.gif', href: 'https://demo.gigya.com/about.php' });

var params = 
{
    userAction:act
    ,showMoreButton: true // Enable the "More" button and screen
    ,showEmailButton: true // Enable the "Email" button and screen
};

// Show the "Share" dialog
gigya.socialize.showShareUI(params); 

 

Notes:

  • This sample is not meant to be fully functional code. For brevity's sake, only the code required for demonstrating the API call itself is presented.
  • To run the code on your own domain, add your Gigya API key to the gigya.js URL. A Gigya API key can be obtained on the Site Dashboard page on Gigya's website. Please make sure that the domain from which you are loading the page is the same domain name that you used for generating the API key.

Important Note: If you intend to use socialize.showShareUI or socialize.showShareBarUI, it is required to check the Enable retrieving user contacts permission of the General Permissions page of the Gigya Console.

In the Share plugin demo you will find a complete working example that uses the socialize.showShareUI method. You may view the code, run it and view the outcome.