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

前端 未结 2 1272
醉梦人生
醉梦人生 2021-02-15 23:45

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-16 00:04

    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
    

提交回复
热议问题