Socialid.login.startLoginClick

From Social ID Developers
Revision as of 20:39, 26 February 2020 by Ivan.filho (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Description

Starts the social login process for the given provider when the user clicks on a DOM element.

See also:

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", "gplus", "instagram" or "apple".

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

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox