Socialid.login.startLoginClick
(Difference between revisions)
Renato.neves (Talk | contribs) (→Description) |
(→Description) |
||
Line 1: | Line 1: | ||
== Description == | == Description == | ||
− | Starts the social login process for the given provider when the user clicks on a DOM element | + | Starts the social login process for the given provider when the user clicks on a DOM element. |
− | + | See [[socialid.login.startLogin]] for more information. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
== Usage == | == Usage == |
Revision as of 15:03, 23 November 2017
Contents |
Description
Starts the social login process for the given provider when the user clicks on a DOM element.
See socialid.login.startLogin for more information.
Usage
socialid.login.startLoginClick(elementId, provider)
Parameters
elementId | required | Id of a DOM element. | provider | required | Determines which provider will be used in the login 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_login" element:
socialid.login.init(1, {loginType: "event"}); socialid.login.startLoginClick("twitter_login", "twitter");
You can test this parameters in our playground: https://sid-examples.herokuapp.com/social_logins/playground