Display content after clicking Facebook Like button

前端 未结 3 1394
南笙
南笙 2020-12-29 12:09

I have a section of a webpage that I only want people to be able to access after clicking a Facebook Like button.

How do I hide that particular area and then displa

3条回答
  •  感情败类
    2020-12-29 12:50

    I'm not quite sure if this works. Remembering the f8 introduction of the like button facebook don't let website owners see who liked their page.

    The like button is rendered client side from the java script file hosted on facebook. I'm not a super java script expert, but I don't know a way to get variables from external java script files.

    The only idea I have is when a user made his likes public. You probably could read the cookie and then look up his likes on his public facebook page. As facebook loads most of it's content dynamically you can revers engineer the java script functions used on the public page by facebook internally, even if they are not part of the official API

提交回复
热议问题