Search code examples
phpfacebookfacebook-likefacebook-likebox

How to create a like gate for a Facebook app


I'm absolutely new to coding and am trying to add a like gate to my Facebook app (a simply blog feed created using a wordpress plugin)

I really want to make a like gate for the app... ideally it would be an ajax style popup that greys out the content until the page is liked, or a transparent graphic which does the same.

Does anyone have any idea on how to do this? I'm completely stuck!


Solution

  • Like-Gates are usually in App Tabs, where it's possible to check if the user liked the page without forcing the user to authorize your app first. So your first step is to research how to use signed_request to determine if the page has been liked. If the page isn't liked, show the ajax popup. For the 'ajax-style-popup' you can use something like leanModal