user2135238
user2135238

Reputation: 11

How to get response from google share api.?

I am using a google+ share button. It is working fine and content is also shared successfully. But I want to generate notification on successful share and the same for error. For that I need response of google+ share. If anyone have idea how to get response from google+ share api, Please share. Thanks for your help.

Upvotes: 1

Views: 1055

Answers (1)

BrettJ
BrettJ

Reputation: 6841

The Google+ Share button does not offer a mechanism for detecting the sharing of a post for the web. The onstartinteraction and onendinteraction parameters are triggered on the hover events in case you need to listen to those for other events.

The +1 button does offer a callback but that isn't used for detecting a share from the button but rather a +1. Also, you need to be careful to ensure that you follow the Google+ button policy.

Upvotes: 1

Related Questions