A social network connection is equivalent to an established session the current user has with a social network.
The following guide discusses implementing a connection to a social network, when your site user is logged in with a different social network. This guide is intended for use for Gigya customers who do not use RaaS.
A social network connection is equivalent to an established session the current user has with a social network. A valid and active connection is required in order to perform social interaction using Gigya, such as sharing content and accessing the user's social graph.
The Distinction between Login and Adding Connection
Gigya's services can be divided broadly into two categories: social login and social interaction. These two categories are related but based on different concepts.
Social login is the process of identifying a person and assigning an ID in a secure, reliable and repeatable way. It ensures the same person gets the same ID every time they are authenticated. This process is a discrete operation with a clear beginning and end. It only happens when the user logs in, and does not require any long-term interaction with the user or the social login providers beyond that point in time. The Gigya API calls related to social login are socialize.login, socialize.showLoginUI, socialize.logout, socialize.notifyLogin, and socialize.notifyRegistration.
Social interaction is an ongoing process that requires a long-term relationship with the social network. Gigya represents this long term relationship as a connection between a social network and a user. A connection is equivalent to connection is an established session with the a social network and it , that may expire according to the social network's policy. A valid and active connection is required in order for the user to perform social interaction using Gigya, such as sharing content and accessing the user's social graph. The Gigya API calls for establishing connections are socialize.addConnection, socialize.showAddConnectionsUI and socialize.removeConnection (for terminating connections).
The actual process of logging in and of adding a connection is the same for the user. In both, the user is asked to log into a social network and authorize the site. The goal, however, is very different: only a login operation authenticates the user in a way that retrieves a persistent user ID.
In Gigya, whenever a user logs in, a connection is automatically established with the login provider, if that provider supports it.
When Should You Use the "Add Connection" API Methods?