0
votes

how to implement callbacks aftersuccessful sharing of twitter and google plus . The following urls am using to share Twitter: https://twitter.com/intent/tweet?url=your url, Google: https://plus.google.com/share?url=your url

2

2 Answers

0
votes

you better to open social links in a new tab using target="_blank".You can not redirect from a social url

0
votes

If you are opening those URLs in popups/new tabs there isn't any method of getting successful sharing callbacks. The best you can do is use the JavaScript SDKs the services provide and listen for intent by the user that they are going to share.

Twitter has events which can tell you when a user has clicked to tweet.

Google+ +1 button has onstartinteraction to tell you when the +1 widget has been opened.