JavaScript API Methods

To be able to use the JavaScript methods you must embed our library.js and initialise the asynchronous queue.

1. Initialise the asynchronous queue

<script type="text/javascript">

		/* Initialise the asynchronous queue */
		var _oneall = _oneall || [];
		/* Methods can be used starting from here */

2. Choose the scope and call the method

The first argument of each method defines it's scope. By using the scope you can select the service for which you would like to call the method, like per example social_login or social_link. You can also use a wildcard * as scope. In this case the method will be called for all services that implement the specified method.

<script type="text/javascript">

		/* Initialise the asynchronous queue */
		var _oneall = _oneall || [];
		/* Instead of doing this: */
		_oneall.push(['social_login', 'set_providers', ['facebook', 'twitter']]);
		_oneall.push(['social_link', 'set_providers', ['facebook', 'twitter']]);
		/* You could also do this: */
		_oneall.push(['*', 'set_providers', ['facebook', 'twitter']]);

3. Available scopes and their methods

Social Login

Allow your users to login and register with one click on your website using their social network accounts.

Social Link

Allow your users to link one or more social network accounts to their existing account on your website.

Single Sign-On

Automatically sign in your users as they browse between multiple and independent websites.


Integrate a comments system that includes logging in with social networks, spam filters and more!

User Contributed Notes