Socialid.events.onConnectStart
From Social ID Developers
(Difference between revisions)
Renato.neves (Talk | contribs) (Created page with "== Description == Executado quando o usuário inicia o processo de conexão de um novo provedor de login. == Adding Handler == socialid.events.onConnectStart.addHandler(han...") |
Dirceu.tiegs (Talk | contribs) |
||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
== Description == | == Description == | ||
− | + | Triggered when an user starts the connection process for a new login provider. | |
== Adding Handler == | == Adding Handler == | ||
Line 14: | Line 14: | ||
|+ | |+ | ||
! align="left" width="200px" | provider | ! align="left" width="200px" | provider | ||
− | | | + | | Provider used in the connection. Can be "facebook", "twitter", "linkedin", or "gplus". |
|} | |} | ||
== Example == | == Example == | ||
− | + | Adding a handler for the onConnectStart event of the Social Connect widget: | |
socialid.events.onConnectStart.addHandler(function(data) { | socialid.events.onConnectStart.addHandler(function(data) { | ||
Line 25: | Line 25: | ||
}); | }); | ||
− | + | Example response object: | |
{ | { |
Latest revision as of 20:15, 3 November 2014
Contents |
Description
Triggered when an user starts the connection process for a new login provider.
Adding Handler
socialid.events.onConnectStart.addHandler(handler)
Event Data
event | onConnectStart | provider | Provider used in the connection. Can be "facebook", "twitter", "linkedin", or "gplus". |
---|
Example
Adding a handler for the onConnectStart event of the Social Connect widget:
socialid.events.onConnectStart.addHandler(function(data) { console.log("Website received onConnectStart: ", data); });
Example response object:
{ event: "onConnectStart", provider: "twitter" }