update database when a user shared a link to facebook

前端 未结 4 2249
既然无缘
既然无缘 2021-01-06 15:45

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

4条回答
  •  甜味超标
    2021-01-06 16:32

    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.

提交回复
热议问题