Was this article helpful?

'More Networks' Screen

Last modified 05:33, 13 May 2014

Gigya offers dozens of additional destinations for social sharing. The additional destinations are provided through a "More" button on the Share plugin (see screenshot below). When the user clicks the "More" button, the Share plugin presents a list of destination icons. If the user clicks on one of the destination icons, Gigya publishes the user action to the selected destination, and the dialog automatically closes.

ShareUI_More-html1.gif

 

Note: The "More" button is shown by default, but you may hide this button by setting the showMoreButton parameter of the showShareUI API method to "false".

 

Defining the List of "More" Destinations

The moreEnabledProviders, moreDisabledProviders pair of parameters of the showShareUI API method allow you to set which destination site buttons are displayed on the "More" screen, and also determine the order. Each parameter is set with a comma-separated string of destination names. This pair of parameters has a similar logic to the enabledProviders and disabledProviders pair of parameters.

Note: the enabledProviders and disabledProviders pair of parameters define the destination buttons shown on the main Share plugin screen (see Customizing the List of Destinations) while the moreEnabledProviders, moreDisabledProviders pair of parameters define the destination buttons shown on the "More" screen.


Valid destinations for the "More" screen include:
delicious, digg, friendfeed, googlebookmarks, messenger, stumbleupon, skyrock, qq, sina, kaixin, renren, vznet, vkontakte, spiceworks, viadeo, nkpl, xing, tuenti, technorati, plaxo, reddit, formspring, tumblr, faves, newsvine, fark, mixx, bit.ly, hatena, misterwong, ask, amazon, gmail, baidu, box.net, whatsapp, netlog, evernote, aolmail, currenttv, yardbarker, blinklist, diigo, dropjack, segnalo, linkagogo, kaboodle, skimbit, facebook, twitter, googleplus, linkedin, mixi, odnoklassniki, douban.

Note: 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. See the list of destination at the bottom of this page.

 

 
For example:
  • Assuming we would like to support publishing only to Digg, Twitter, MyAOL and Technorati, we will define our params object as follows:
    var params = { 
        userAction: act, 
        moreEnabledProviders: "digg,twitter,myaol,linkedin,technorati"
    };
  • Assuming we would like to support publishing to all of the destinations except Digg and Technorati, we will define our params object as follows:
    var params = { 
        userAction: act, 
        moreDisabledProviders: "digg, technorati"
    };

Note - The icon next to the "More" button shows the first destination in the "More" screen, in other words, the first provider in the moreEnabledProviders list. The default is delicious.

 

 

Running Example

Here is a running example of the Share plugin with enabled "More" button and with customized list of "More" destinations:

 

The Example Code

<html>
<head>
    <style>
	 body {font-family:Arial;font-size: 12px; background-color:#fff; line-height:20px}
	</style>
	<SCRIPT type="text/javascript" lang="javascript" 
	   src="http://cdn.gigya.com/JS/socialize.js?apikey=2_Y82PzwJ_chSFImHXaIDJClnLyJzmk-VFOavSsaNTzl6m901s_NNxRAS0xJ3bd3_N">
	   {
		cid: "Share Example page"
	   }
	</SCRIPT>
	<script>
	  
    </script>
    <script type="text/javascript">

        // Create and Publish User's Action
        // This method is associated with the "btnPublishAction" click
        function showShareUI() {

		    // Constructing a UserAction Object
		    var act = new gigya.socialize.UserAction();

		    // Setting the title and description 
		    // (will be presented in the preview on the Share UI)
		    act.setTitle("HOME movie (English with subtitles)");
		    act.setDescription("We are living in exceptional times."
		        + " Scientists tell us that we have 10 years to change the way we live," 
		        + " avert the depletion of natural resources and the catastrophic evolution"
		        + " of the Earth's climate. The stakes are high for us and our children."
		        + " Everyone should take part in the effort, and HOME has been conceived"
		        + " to take a message of mobilization out to every human being.");

            // Setting a link back to the publishing source
		    act.setLinkBack("http://www.youtube.com/watch?v=jqxENMKaeCU");

		    // Adding Action Link
		    act.addActionLink("Watch the movie", 
		        "http://www.youtube.com/watch?v=jqxENMKaeCU&feature=channel_page");

		    // Adding an image (will be presented in the preview on the Share UI)
	        var image = {
	            src: 'http://i3.ytimg.com/vi/jqxENMKaeCU/movieposter.jpg?v=734a3b',
	            href: 'http://youtu.be/jqxENMKaeCU',
	            type: 'image'
	        }
			act.addMediaItem(image);

			// Parameters for the showShareUI method, including the UserAction object
			var params = 
			{
			    userAction: act  // The UserAction object enfolding the newsfeed data.			                                  
			    ,onError: onError  // onError method will be summoned if an error occurs. 
			    ,onSendDone: onSendDone // onError method will be summoned after 
			                        // Gigya finishes the publishing process.
				
				// Enable the "More" button and screen:
				,showMoreButton: true 
				// Customize the list of destinations in the "More" screen:
				,moreEnabledProviders: "digg, friendfeed, googlebookmarks, myaol, technorati, linkedin"
				//  Remove myaol and linkedin destinations from the main Share screen (Note - we added these destinations to the "More" screen):
				,disabledProviders: "myaol, linkedin"
    			,useHTML: true  // Use the HTML implementation of the Plugin (rather than Flash implementation)

			};

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

		}
		
		// onError event handler
		function onError(event) {
		    alert('An error has occured' + ': ' + event.errorCode + '; ' + event.errorMessage);
		}

		// onSendDone event handler. 
		// Displays in the status field, the list of providers to which the newsfeed has been 
		// successfully published.
		function onSendDone(event)
		{
		    document.getElementById('status').style.color = "green";
		    document.getElementById('status').innerHTML = 
                            'The newsfeed has been posted to: ' 
		            + event.providers;
		}
    </script>

</head>
<body>
    <h4>Please, click the button below to open the "Share" dialog...</h4>
    <input type=button id="btnShare" onclick="javascript:showShareUI()" value="Share" />
    <div id="status"></div>
</body>
</html>

In this example:

  • We alter the list of destinations in the "More" screen and the order in which the buttons appear (by setting the moreEnabledProviders parameter). Please note that "Digg" is the first destination in the list, thus the "Digg" icon appears on the "More" button, which is located on the Share main screen.
  • We remove yahoo and linkedin destinations from the Share main screen (by setting the disabledProviders parameter) and add these destinations to the "More" screen (by setting the moreEnabledProviders parameter).

150 More Explicit Destinations:

In addition to the above automatic destinations, Gigya supports the following 150 destinations: 

100zakladok, A1-Webmarks, Adifni, AIM Share, Amen Me!, Arto, Aviary Capture, BizSugar, Blip, Blogmarks, Bobrdobr, BonzoBox, Bordom, Brainify, BuddyMarks, Camyoo, Care2, Cirip, CiteULike, ClassicalPlace, Clickazoo, Colivia.de, Connotea, COSMiQ, DesignBump, Designmoo, Diggita, Diglog, Digo, Diigo, Dipdive, DoMelhor, Doower, Dosti, DotNetKicks, Dzone, Edelight, eKudos, eLert Gadget, Embarkons, euCliquei, Fabulously40, Farkinda, FAVable, Favoritus, Floss.pro, Fnews, Formspring, Fresqui, funP, fwisp, Gabbr, Gacetilla, GamesN, GluvSnap, Google Reader, Gravee, Grumper, Haber.gen.tr, Hacker News, Hadash Hot, Hatena, Hazarkor, Hedgehogs.net, HelloTxt, HEMiDEMi, Hipstr, Hitmarks, Hot Bookmark, Hotklix, HTML Validator, Identi.ca, Instapaper, InvestorLinks, Jamespot, Jumptags, Kaevur, KiRTSY, Kledy, koornk, Kudos, Laaikit, Librerio, Link Ninja, Linkuj.cz, Livefavoris, Lunch.com, Meccho, meinVZ, Memori.ru, Menéame, Mindbodygreen, Mylinkvault, N4G, Netvouz, Nujij, OKNOtizie, Oneview, Osmosus, Oyyla, PDF Online, PimpThisBlog, Ping.fm, Planypus, Plurk, Polladium, Posterous, Pusha, Quantcast, Read It Later, Scoop.at, Sekoman, Shaveh, She Told Me, Smak , ews, SodaHead, Sonico, Speedtile, Spruzer, Squidoo, Startaid, Startlap, Strands, studiVZ, Stuffpit, Stumpedia, Stylehive, Surfpeople, Svejo, Symbaloo, Tagza, TellMyPolitician, ThisNext, Tip'd, Tulinq, Tusul, Viadeo, VKontakte, Vyoom, Whois Lookup, Windy Citizen, WireFan, Worio, Wovre, Wykop, Yammer, Yazzem, Yigg, Yoolink, Yorumcuyum, Youbookmarks, YouMob. 

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.

Was this article helpful?
Pages that link here
Page statistics
5195 view(s) and 3 edit(s)
Social share
Share this page?

Tags

This page has no custom tags set.

Comments

You must to post a comment.

Attachments