Socialid.login.startConnect

From Social ID Developers
Revision as of 15:03, 23 November 2017 by Gabriel.prado (Talk | contribs)
Jump to: navigation, search

Contents

Description

Opens the popup dialog to connect a new provider credential in the current login session.

The operation is similar to socialid.login.renderConnectWidget, except for the fact that no widget will be rendered. The triggered events are the same as the widget.


Usage

 socialid.login.startConnect(provider)

Parameters

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 Facebook when the user clicks on the "facebook_connect" button:

 socialid.login.init(1);
 facebook_button = document.getElementById("facebook_connect");
 facebook_button.onclick = function() {
   socialid.login.startConnect("facebook");
 };

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

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox