How to create a fan / like gate on Facebook?

后端 未结 4 958
抹茶落季
抹茶落季 2021-01-17 01:14

I am trying to create a simple fan/like gate. Where you specify one content for none fans and other content for fans (if they pressed the like button). However when I run th

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-17 01:59

    Your example is using the Facebook PHP SDK by the looks of it. If you want something a bit simpler and relatively straight forward to implement, then take a look at this Facebook Fan / Like Gate over on GitHub.

    I've used it on a bunch of Facebook tabs in the past and it's served me well. There's also a 'JavaScript setup' branch with the js sdk and application config setup and ready to go.

提交回复
热议问题