Socialid.login.startConnectClick
From Social ID Developers
(Difference between revisions)
Renato.neves (Talk | contribs) (→Parameters) |
Ivan.filho (Talk | contribs) (→Parameters) |
||
(3 intermediate revisions by one user not shown) | |||
Line 3: | Line 3: | ||
Opens the popup dialog to connect a new provider credential in the current login session when the user clicks on a DOM element. | 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: | |
+ | * [[socialid.login.startConnect]] | ||
== Usage == | == Usage == | ||
Line 18: | Line 19: | ||
! align="left" width="200px" | provider | ! align="left" width="200px" | provider | ||
| width="200px" | required | | width="200px" | required | ||
− | | Determines which provider will be used in the connect process. Can be "facebook", "twitter", "linkedin" | + | | Determines which provider will be used in the connect process. Can be "facebook", "twitter", "linkedin", "gplus", "instagram" or "apple". |
|} | |} | ||
Line 25: | Line 26: | ||
It opens a popup starting the login dialog with Twitter when the user clicks on the "twitter_connect" element: | 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"); | ||
You can test this parameters in our 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