Wordpress Plugin: Gigya

I was going through my site statistics and found that there are people who searched for this and landed up here;

if( typeof( gigya ) != 'undefined' ) { gigya.services.socialize.showLoginUI(conf, login_params); gigya.services.socialize.addEventHandlers(conf,{onLogin:processLogin}); } });

I had this error initially when I first installed the plugin. I frantically searched for all possible explanations (so I thought). I went to the forums and asked for help. After a few days, I realised I keyed in the wrong stuff.

screenshot

I entered all that is in above from the Login Setup page in Gigya, below in my Wordpress dashboard:

screenshot2

That is how I got the abovementioned error. It is all wrong. What the Wordpress plugin requires is just a few lines from the first screenshot. I found the vague instructions in the link circled in red.

Anyway, here is the required code for both Sign In Component and Widget Sign In Component:

var conf=
{
"APIKey":"Insert your API key here",
"enabledProviders":"facebook,myspace,twitter,google,yahoo,aol"
}
var login_params=
{
"height":110,
"width":120,
"containerID":"componentDiv"
}

gigya.services.socialize.showLoginUI(conf,login_params);

The required code for Friend Selector Component:


var conf=
{
"APIKey":"Insert your API key here",
"enabledProviders":"facebook,myspace,twitter,google,yahoo,aol"
}
var fs_params=
{
"height":360,
"width":400
}
gigya.services.socialize.showFriendSelectorUI(conf,fs_params);

Happy editing!

Related Posts with Thumbnails

Popularity: 6%

Print