Socialid.events.onConnectSuccess
From Social ID Developers
(Difference between revisions)
Dirceu.tiegs (Talk | contribs) |
Dirceu.tiegs (Talk | contribs) |
||
Line 1: | Line 1: | ||
== Description == | == Description == | ||
− | + | 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" }