Socialid.login.startConnectClick

From Social ID Developers
(Difference between revisions)
Jump to: navigation, search
m
(Parameters)
 
(5 intermediate revisions by 2 users not shown)
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 quando o usuário clica em um elemento do DOM.
+
Opens the popup dialog to connect a new provider credential in the current login session when the user clicks on a DOM element.
  
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.
+
See also:
 +
* [[socialid.login.startConnect]]
  
 
== Usage ==
 
== Usage ==
Line 13: Line 14:
 
{|
 
{|
 
! align="left" width="200px" | elementId
 
! align="left" width="200px" | elementId
| width="200px" | obrigatório
+
| width="200px" | required
| Id de um elemento do documento.
+
| Id of a DOM element.
 
|+
 
|+
 
! 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. Pode ser "facebook", "twitter", "linkedin" ou "gplus".  
+
| Determines which provider will be used in the connect process. Can be "facebook", "twitter", "linkedin", "gplus", "instagram" or "apple".
 
|}
 
|}
  
 
== Example ==
 
== Example ==
  
Inicia o diálogo de conexão para o Twitter quando o usuário clicar no elemento "twitter_connect":
+
It opens a popup starting the login dialog with Twitter when the user clicks on the "twitter_connect" element:
  
   socialid.login.init(1);
+
   socialid.login.init(1, {connectType: "event"});
 
   socialid.login.startConnectClick("twitter_connect", "twitter");
 
   socialid.login.startConnectClick("twitter_connect", "twitter");
  
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

Latest revision as of 20:39, 26 February 2020

Contents

Description

Opens the popup dialog to connect a new provider credential in the current login session when the user clicks on a DOM element.

See also:

Usage

 socialid.login.startConnectClick(elementId, provider)

Parameters

elementId required Id of a DOM element.
provider required Determines which provider will be used in the connect process. Can be "facebook", "twitter", "linkedin", "gplus", "instagram" or "apple".

Example

It opens a popup starting the login dialog with Twitter when the user clicks on the "twitter_connect" element:

 socialid.login.init(1, {connectType: "event"});
 socialid.login.startConnectClick("twitter_connect", "twitter");

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

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox