In a previous post, I explained how to use an FQL query to get the current number of “likes” for a page, even if that page is age-gated. This time we’re going to look at the FQL query to do something similar for external pages (content pages not on Facebook, like blog posts, etc.)
Facebook Like-Gating in IFRAME Tabs
Last year, I posted about how to show certain content to fans, and other content to non-fans using FBML. As FBML becomes deprecated, however, it’s time to show you the updated way using the Open Graph, the PHP SDK and IFRAMES.
Getting Like Count on a Facebook Fan Page Using the PHP SDK & FQL
I’m working on a project that will end up being age-gated because of graphic content. (No, not porn, unfortunately, but a blood and gore video game is almost as good.) It’s also like-gated, so we needed to fetch the number of people who liked the page, so that certain content would be unlocked when the like-count reached a certain number.