Quick Start

Add the following to your HTML:

<script src="https://websdk.getsocial.im/getsocial.min.js"></script>

Initialize the SDK and authenticate as a user:

// Initialize SDK
GetSocialSDK.GetSocial.init({
    appId: 'YOUR_APP_ID',
    appName: 'YOUR_APP_NAME'
});

// Authenticate with a trusted identity
GetSocialSDK.Auth.authenticate({
    identity_type: 'facebook',
    token: 'FACEBOOK_ACCESS_TOKEN'
})
.then(function (response) {
    console.log(`User ${response.user.displayName} is authenticated`);
})
.catch(console.log);