Custom User Interface

Note: This topic is for legacy Social Sharing v2 support only. For all new integrations, please see the current Social Sharing documentation.

Share Button

The Code

Social Sharing can be stripped down to simply the JavaScript API, meaning an entirely custom interface can be crafted for any purpose. By changing the custom setting to true, the UI will not render and instead expose three new functions for use within a custom GUI: login, send, and loginAndSend.

By combining these functions with the Janrain JavaScript event system, Social Sharing can take on limitless forms. The following code is a very simple example of how to set up buttons that will automatically share a predefined message.