Track Facebook link share from php

94 Views Asked by At

I want to check if the user actually shared on facebook the post ( not only clicking on the button ). I've been checking the fb script and couldn't find a solution that will work all the time. Is there another way to check it besides the FB.ui script ?

document.getElementById('shareBtn').onclick = function() {
  FB.ui({
    display: 'popup',
    method: 'share',
    href: 'https://developers.facebook.com/docs/',
  }, function(response){console.log(response)});
}
0

There are 0 best solutions below