Facebook like and share button with callback

前端 未结 4 1118
闹比i
闹比i 2020-12-04 16:03

I have a webpage where I have placed a Facebook like & share button and corresponding javascript callback functions are also present.

Now the problem is, the jav

4条回答
  •  醉话见心
    2020-12-04 16:35

    Just add data-onlike="function_name" and define the function in your javascript. Your done, your function will be called as soon as the person hits like on your website. For share button it's still in development mode, I'll update you soon on that..

提交回复
热议问题