Socialid.events.onConnectSuccess

From Social ID Developers
(Difference between revisions)
Jump to: navigation, search
(Created page with "== Description == Executado quando o usuário finaliza o processo de conexão de uma nova credencial com sucesso. == Adding Handler == socialid.events.onConnectSuccess.addH...")
 
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
 
== Description ==
 
== Description ==
  
Executado quando o usuário finaliza o processo de conexão de uma nova credencial com sucesso.
+
Triggered when the user ends the connection process successfully.
  
 
== Adding Handler ==
 
== Adding Handler ==
Line 14: Line 14:
 
|+
 
|+
 
! align="left" width="200px" | provider
 
! align="left" width="200px" | provider
| O provider utilizado pelo usuário na conexão. Pode ser "facebook", "twitter" ou "linkedin".
+
| Provider used in the connection. Can be "facebook", "twitter", "linkedin", or "gplus".
 
|}
 
|}
  
 
== Example ==
 
== Example ==
  
Adicionando um handler para o evento onConnectSuccess do widget de Social Connect:
+
Adding a handler for the onConnectSuccess event of the Social Connect widget:
  
 
   socialid.events.onConnectSuccess.addHandler(function(data) {
 
   socialid.events.onConnectSuccess.addHandler(function(data) {
Line 25: Line 25:
 
   });
 
   });
  
Exemplo de resposta do objeto data:
+
Example response object:
  
 
   {
 
   {

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