Reputation: 477
I need to create a Share on Facebook / Twitter button. Such that when a user clicks that button and completes the share, I get an event in javascript fired.
Actually the user is rewarded something when they share my site on Facebook / Twitter. So I need an event fired when this is done.
Not when the user clicks the button, but when the share is submitted on Facebook / Twitter successfully.
Any ideas?
Upvotes: 3
Views: 1419
Reputation: 73984
What you want to do is not allowed on Facebook. You cannot reward a user for sharing: https://developers.facebook.com/policy
see section 4.5:
Only incentivize a person to log into your app, like your app’s Page, enter a promotion on your app’s Page, or check-in at a place. Don’t incentivize other actions.
It is also very bad practice in general, users should like or share something because they want to, not because they would get something for it.
Upvotes: 3