ILikeTacos
ILikeTacos

Reputation: 18676

Is there any way to know if a link was shared (sent)?

Along with the Like button, there is a "Send" button, whose functionality is similar to the deprecated "Share" button. I'd like to know if there is a programmatically way to know if a particular user successfully shared a link.

I am thinking about offering rewards on my website to those who share a link on facebook, but in order to do that. I need to be able to track which user shared the link.

My possible solution is to share a unique URL per user, and then track the referer, but I do not know how reliable that method is, or how abusable it is, I think it would be easier if facebook provide some kind of callback function, so I can keep track which user sent a link.

Thanks!

Upvotes: 0

Views: 607

Answers (2)

C3roe
C3roe

Reputation: 96316

I am thinking about offering rewards on my website to those who share a link on facebook

That would be against platform policies – see section IV. Application Integration Points, #1:

“You must not incentivize users to use […] Facebook social channels, or imply that an incentive is directly tied to the use of our channels.”

Upvotes: 1

http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/

You can subscribe to the "message.sent" event and call your server with an ajax request when the event is triggered.

FB.Event.subscribe('message.sent'', function(response) { alert('Track that someone shared the URL: ' + response); } );

Upvotes: 1

Related Questions