2. Implement the callback script
Once the user has selected a social network (like for example Facebook), he will be asked to sign in with this account. If the user successfully authenticates, he will be redirected to the callback_uri that you specified in the plugin parameters.
The callback_uri is an URL to a script on your server. This script contains a few lines of code that extract the POST
parameter connection_token and fetch the user profile data by sending a request to our API Connections Resource.