A really simple Facebook “Fan / Like Gate” written in PHP

November 8th, 2011 § 0 comments

What? You’re not using a fan / like / reveal gate?

Well, apparently you should be.

It’s really easy if all you want to do is find out if the current user has liked the page or not. I’ve packaged it up into an index file that…

  1. Decodes the signed request that Facebook sends – this contains the like status.
  2. Renders a view depending on the like status.

 

What is it?

It’s one of those Facebook pages where you have to like the page before you’re allowed to see the hidden content. You know, like the classic Coca-Cola one*.

 

Where can I get it?

On MozMorris over on GitHub.

 

* it was there the last time I looked.

 

 

 

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

What's this?

You are currently reading A really simple Facebook “Fan / Like Gate” written in PHP at Blog of Moz Morris Freelance Web Developer.

meta

Social Widgets powered by AB-WebLog.com.