This tutorial will take you through How To increase fan for your Facebook page by asking them to like the page before accessing your great content. Meaning people have to become a fan in order to participate your contest, play your game/campaign.
I assume that you already added your App Profile Page as a Custom Tab (ex: Welcome) to your Facebook page. When people click on the Custom Tab link, it will determine to see whether current visitor is already a Fan to display a proper page.
On the image above, when click on Welcome custom tab on my Page, you will see a landing page with few Facebook Like buttons – on the top is the default Facebook Like button for Page and others are Facebook Like button plugin. When click on Like button, current visitor will become a fan and be redirected to the contest/game page. And you can change the copy as well as image to whatever you want, of course.
PHP script to check if people like Facebook page
In the PHP code below, I’m using the latest PHP Facebook Graph API therefore it may a little bit different with your current so let download my source code to check out the Graph API to ensure it works properly.
- 1. Update the your-app-id and your-app-secret (on lines: 5,6,32) with yours. You can find them in the Application Settings Basic page as below:
- 2. Again, you’re free to make your landing page more sexy and interest to engage people become your fan. 🙂
- 3. In the scope of this tutorial, I don’t mention How to integrate with Facebook user information (ex: profile, friends, photos, etc). We will talk about it later, please wait.
+ Download my source code and current Facebook PHP SDK
+ View demonstration on my Facebook page