How to check if user shared website (Facebook)? Is it possible?

前端 未结 2 690
自闭症患者
自闭症患者 2021-02-15 23:36

I am currently writing a website and I need some help about facebook integration. I need a function (PHP or JS, both will help) that can check if a given user shared my website,

2条回答
  •  失恋的感觉
    2021-02-15 23:54

    First you have to load the Facebook SDK right after your tag:

    Then you can use the callback function to do what you want:

    
    

    Then you should use it like this:

    Share on facebook
    

提交回复
热议问题