Capture the share callbacks on Facebook, Twitter (tweet) and/or LinkedIn
Check a full (and simple) example in examples folder
Set the Share on Twitter callback
socialShareCallback.twitter(function(tweetEvent) {
// Successful Tweet Callback
})
Please check you are setting your appId
FB.init({
appId : 'your-appId',
status : true,
xfbml : true,
version : 'v2.1'
});
Share the current URL and set the successful callback
socialShareCallback.facebook(function(response) {
// Successful Share on Facebook Callback
// Example output of response
// response = { post_id: '1090930483948394839' }
})
Set the Share on LinkedIn callbacks
socialShareCallback.linkedin(function() {
// Successful Share on LinkedIn Callback
})
See LICENSE file