I saw this link here:
How to detect Facebook share success? with Javascript
But how do I implement that?
Here you have instructions how to init FB Javascript SDK, then use function from your's link.