Skip to content

Instantly share code, notes, and snippets.

@mehdimehdi
Created September 28, 2011 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mehdimehdi/1248406 to your computer and use it in GitHub Desktop.
Save mehdimehdi/1248406 to your computer and use it in GitHub Desktop.
JavaScript to reward enable the follow and like button
$(document).ready(function(){
FB.Event.subscribe('edge.create', function(response) {
_ptq.push(["like","1"]);
});
if (window.twttr !== undefined) {
if (twttr.events !== undefined) {
twttr.events.bind('follow', function(event) {
_ptq.push(["follow","1"]);
});
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment