Is it possible to update database once a user shared a link in my website?
Such as,some points will be awarded to their account if they shared the link.
And
You do not need facebook, you could just have a Javascript AJAX call executed when someone clicks the Like button on your page. The call writes to your database. Just bin a click event to the button.