Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Share success callback

Tags:

facebook

Is there a callback or another way to track whether or not someone successfully shared something using the share button?

like image 969
Ansar Muhammad Avatar asked Jul 29 '10 06:07

Ansar Muhammad


1 Answers

Are you using FB.ui?

As it says right there in the docs

function(response) {
  if (response && response.post_id) {
    alert('Post was published.');
  } else {
    alert('Post was not published.');
  }
}
like image 78
Peter Bailey Avatar answered Oct 27 '22 00:10

Peter Bailey