Socialid.events.onConnectSuccess

From Social ID Developers
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 
== Description ==
 
== Description ==
  
Executed when the user ends the connection process successfully.
+
Triggered when the user ends the connection process successfully.
  
 
== Adding Handler ==
 
== Adding Handler ==

Latest revision as of 20:15, 3 November 2014

Contents

Description

Triggered when the user ends the connection process successfully.

Adding Handler

socialid.events.onConnectSuccess.addHandler(handler)

Event Data

event onConnectSuccess
provider Provider used in the connection. Can be "facebook", "twitter", "linkedin", or "gplus".

Example

Adding a handler for the onConnectSuccess event of the Social Connect widget:

 socialid.events.onConnectSuccess.addHandler(function(data) {
   console.log("Website received onConnectSuccess: ", data);
 });

Example response object:

 {
   event: "onConnectSuccess",
   provider: "facebook"
 }
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox