Socialid.login.startConnectClick
From Social ID Developers
Revision as of 15:02, 23 November 2017 by Gabriel.prado (Talk | contribs)
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 socialid.login.startConnect for more information.
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" or "gplus". |
---|
Example
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.startConnectClick("twitter_connect", "twitter");
You can test this parameters in our playground: https://sid-examples.herokuapp.com/social_logins/playground