Was this article helpful?

Follow Bar Plugin

Last modified 11:19, 20 Jan 2014

See it in Action

 

Check Out the Code

<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script src="http://cdn.gigya.com/JS/socialize.js?apiKey=2_Y82PzwJ_chSFImHXaIDJClnLyJzmk-VFOavSsaNTzl6m901s_NNxRAS0xJ3bd3_N"></script>	
	<title>Follow Bar Example</title>
</head>
<body>
<h2 style="text-align:center;">Follow Us:</h2>
<div id="bar1" style="text-align:center;"></div>
	<script>
		var params1 = {
			containerID: 'bar1',
			iconSize:42,
			buttons:[
				{
					provider: 'facebook',
					actionURL: 'https://www.facebook.com/gigya',
					action: 'dialog'
				},
				{
					provider: 'twitter',
					followUsers: 'gigya, gigyaDev', 
					action: 'dialog'
				},
				{
					provider: 'googleplus',
					actionURL: 'https://plus.google.com/107788669599113247501/posts', 
					action: 'window'
				},
				{
					provider: 'linkedin',
					actionURL: 'http://www.linkedin.com/company/gigya',
					action: 'window'
				},
				{	provider: 'rss',
					actionURL: 'http://blog.gigya.com/feed/',
					action: 'window'
				},
				{
					provider: 'email',
					confirmationText:'Thank you for following us',
					action: 'dialog'
				},
			]
		}	
			
        gigya.socialize.showFollowBarUI(params1);
	
	</script>
	<br><br>
	
</body>
</html>

Note:
In order to make this code work in your environment, please:
  • Click the "view source" icon (link located above code on the right hand side) - This will open a popup window with a text version of the code, which you may copy.
  • The API key in the sample will only work on http://localhost/...
  • To load the page from your domain, modify the value of the "APIKey" field in the code to your own Gigya API Key. 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.

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

Tags

This page has no custom tags set.

Comments

You must to post a comment.

Attachments