Socialid.login.startConnect

(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
 
== Description ==
 
== Description ==
  
Abre o diálogo (popup) para adicionar conexão para um determinado provedor de login ao usuário atualmente logado no Social Login.
+
Opens the popup dialog to connect a new provider credential in the current login session.
  
O funcionamento é semelhante ao [[socialid.login.renderConnectWidget]], exceto pelo fato de que nenhum widget será renderizado. Os eventos disparados seguem o mesmo príncipio do widget.
+
The operation is similar to [[socialid.login.renderConnectWidget]], except for the fact that no widget will be rendered. The triggered events are the same as the widget.
  
 
== Usage ==
 
== Usage ==
Line 13: Line 13:
 
{|
 
{|
 
! align="left" width="200px" | provider
 
! align="left" width="200px" | provider
| width="200px" | obrigatório
+
| width="200px" | required
| Especifica o provedor que se deseja iniciar o processo de conexão de um novo provedor de login. Pode ser "facebook", "twitter", "linkedin" ou "gplus".  
+
| Determines which provider will be used in the connect process. It could be "facebook", "twitter", "linkedin" or "gplus".
 
|}
 
|}
  
 
== Example ==
 
== Example ==
  
Inicia o diálogo de conexão para o Facebook quando o usuário clicar no botão "facebook_connect":
+
It opens a popup starting the login dialog with Facebook when the user clicks on the "facebook_login" button:
  
 
   socialid.login.init(1);
 
   socialid.login.init(1);
Line 27: Line 27:
 
   };
 
   };
  
Teste os parâmetros em nosso playground: https://sid-examples.herokuapp.com/social_logins/playground
+
You can test this parameters in our playground: https://sid-examples.herokuapp.com/social_logins/playground

Revision as of 17:35, 3 November 2014

Contents

Description

Opens the popup dialog to connect a new provider credential in the current login session.

The operation is similar to socialid.login.renderConnectWidget, except for the fact that no widget will be rendered. The triggered events are the same as the widget.

Usage

 socialid.login.startConnect(provider)

Parameters

provider required Determines which provider will be used in the connect process. It could be "facebook", "twitter", "linkedin" or "gplus".

Example

It opens a popup starting the login dialog with Facebook when the user clicks on the "facebook_login" button:

 socialid.login.init(1);
 facebook_button = document.getElementById("facebook_connect");
 facebook_button.onclick = function() {
   socialid.login.startConnect("facebook");
 };

You can test this parameters in our playground: https://sid-examples.herokuapp.com/social_logins/playground

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox