How To Set Up a Custom Facebook Landing Page

This post is outdated, please use Shortstack for page creation:


A lot of businesses advertise their Facebook pages — whether it is in-store, on their website, on the business cards, or in an email signature. The goal of this type of promotion is to get people to “Like” their pages — so the next time business posts an update, it has a wider reach and can engage more people in the conversation.

As a Facebook Page, you should have a clear strategy for your communications — just getting “likes” won’t cut it, it simply supports your strategy. Priit Kallas wrote a great post about creating a social media strategy — read it, if you don’t yet have one!

In this post, you’ll learn how you can simply create a custom landing page and serve different messages to people, depending if they’ve “liked” you page or not. Something like the Redbull does (you can see other great examples of Facebook landing pages here):

red bull facebook landing page

Redbull’s Facebook page: Difference between landing pages when person doesn’t “Like” it and does.

I order to setup your landing pages, you’ll need:

  • Access to a PHP hosting
  • SSL certificate so your content can be accessed via “https”
  • Design pages for two states (Like and not)
  • Facebook Page Admin rights

Before we get started, let’s get some terminology straight. Before Facebook did several rounds of redesign, it used to have Tabs on top of the Facebook Pages, which served as a primary navigation for pages. Today, these tabs have moved to the side as became links, BUT the naming has stayed the same — Facebook still calls them “Page Tabs” and that’s what’s I’ll use thruout the post.

Here’s a screenshot of what is considered to be “page tabs”:

facebook page tabs

Now when we have this straight, let’s get started!

1. Grant Access to the Facebook’s Developer App & Do a Basic Setup

Go to and click on “+ Create New App”.

facebook developer screen

You’ll be asked to give access to the Developer app, click “Allow”:

facebook developer access

Now you can type in your future App’s name (it will have limited visibility for users, but it’s a good idea to put your page’s name in there, e.g. “Amsterdam Printing Welcome”) and a namespace (a unique identifier for your app within Facebook):

facebook new application

When you press “Continue,” it might ask you to verify your Facebook account, which you can do by either adding a phone number or a credit card. Example below shows verification via phone number (it just texted a code which I had to enter):

facebook confirm account

facebook confirm account code

With this basic setup, you now have the App Id and a App Secret code you’ll need to use on the pages you’ll show to users:

facebook application information

2. Set-up the Pages on Your Own Site.

Now when you have the App Id and App Secret, you can create two pages: first you’ll show to those who don’t “Like” your page and the other one to those who do.

In the code shown below, we are using latest version of Facebook SDK in PHP and a simple index.php file which determines if person likes the page he or she is currently on.

[download link for zip file: includes Facebook SDK]

In the index.php, make sure to change values for App Id and App Secret.

After publishing the page, test if everything works and if you go directly to it, it shows default content (state when don’t “Like” the page).

This URL becomes you “Page Tab URL” which you’ll need in the next step. (For Amsterdam Printing, this URL is

 3. Complete Setup of Your Facebook App.

Go back to, click on “Edit App” and scroll down until you see “Select how your app integrates with Facebook”.

Check “Website” and a “Page Tab”, copy-paste direct URLs, decide of the Page Tab Name — this is what users will see on the left side as a link and hit “Save Changes”:

facebook page tab setup

Note that as of October, you’re required to provide a Secure URLs for Page Tabs. Make sure that your hosting has an SSL certificate issued to it, or otherwise, you page tab won’t show up for users who chose to always use encrypted connection with Facebook.

I also highly recommend adding an icon to your app — it adds to the visual appeal!

To add the icon, simply go to your app, click on “Edit” and then or “Edit Icon”. Icons are 16×16 pixels, but if you upload a bigger (square) image — Facebook will scale it down to the right size. Icons will display to the left of your Page Tab Name and can be used to capture users’ attention.

facebook tab icon

 4. Add “Page Tab” to your Facebook Page.

This is the trickiest step — there’s actually no button to add your new app to the page. Instead, you need to manually populate the following URL:[app_id]&next=[Page_Tab_URL]

For example:

facebook add new tab

It will ask you to select a Page you want this to add to, and you’re almost done!

Few final adjustments: reposition newly created Page Tab to the desired spot by going to the Facebook page and clicking “Edit” on the bottom:

facebook page tab edit

And then drag the tab and click “Done.”

facebook page tab dragging

In case you want to rename the Page Tab — go back to the and click on “Edit App.” Scroll down until you see the “Page Tab” settings and adjust the name:

facebook tab renaming

The last step it to make your newly created Page Tab to be a default landing page for your Page.

Go to your Page, click on “Edit Page” and select your new Page Tab as “Default Landing Tab”. This will be the first tab users will be shown when going to your page, motivating them to Like it!

facebook landing tab

I hope this how-to was easy to follow. Test it out in action on  and if you have any questions, leave a comment below or tweet @svolinsky.

This is a guest post by Slavik Volinsky, Online Marketer at promotional products company, Amsterdam Printing. Follow him on twitter: @svolinsky

34 Responses

  1. Daniel says:

    Oops. Dated page. The current SDK is radically different than this one, and the process falls apart… :o)

  2. atomiku says:

    It seems facebook might have updated their options for this. You may want to double check to see if the instructions are still correct.


  3. lala says:

    is this post still relevant. the facebook pages referenced above dont have customized landing pages

  4. nickie says:

    Can anyone help me how to create a page tab using page tab url. I encountered error message You must be the admin of at least one Facebook Page to perform the requested action.

    can advise me.

  5. Hammer says:

    I think I am missing steps. What do I call the landing page I designed and how does the php code know what the landing page name is?

    I successfully set up the app on facebook, and put the ID code and secret code in the index.php file on my server. I installed the welcome app on my facebook page. But when I click on the Welcome tab I get an error.

    “The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.”

    Given that, I do not think the php program knows what/where the landing pages are? What am I doing wrong? Did I miss a step. Your tutorial just says you need two landing pages. What do I call them, where do they go, and how does the code know what they are?

    • Hammer says:

      forget the 405 http error. fixed that.

      Everything works, except … and a big except, all I get is a blank welcome page. Obviously I missed a step???

  6. Jack Martin says:

    This is a great guide for setting up a FB landing page. Thanks. Every brand page should have a great landing page. Offering unique info is a great way to entice a like, too.

  7. atomiku says:

    Thanks for the great article! I’ve written a post about how to get the iframe canvas to auto-size to the height of the content, as well as removing those annoying horizontal/vertical scrollbars. I’ve linked to this post from my blog post here:

    body{overflow:hidden;} is the key!

  8. Zain says:


    on Step 4, when I try to manually enter the URL with the appID and Page_Tab_URL, I get the following error in Facebook:

    ‘You must be the admin of at least one Facebook Page to perform the requested action.’

    Even though I am listed as an Admin in my app’s ROLES section.

    The appID and Page_Tab_URL are correct.

    Please help!

  9. thedude says:

    Hey Slavik,
    thank you for this very detailed and easy to follow guide!
    I still have a problem which you maybe were able to solve?

    Somehow the code only works for my own account, for all other accounts who click the like button the page remains in the “unliked”-state.

    I think it has something to do with app permissions. Do you have any idea?



  10. Matthew Bumbalough says:

    THANK YOU!!! Googled the crap out of this subject and out of the hundreds of tutorials, this was the ONLY one that was up to date and correct. I finally got it working like I wanted to. Now to find the tutorials for everything else I want to do.

  11. Steve says:

    Great, spent a while trying this and looking for tutorials. This worked first time. Cheers

  12. MarkJ says:

    Great tutorial – think I have nearly cracked it but not quite 🙁
    App seems to work ok on its individual app page (apps, etc…) – but when I add it to the page as a tab it is just coming through as a blank page.

    Any help you can give would be much appreciated

    • Hammer says:

      Hello Mark,

      Did you find a solution to the blank page? I completed the set up and just like you were experiencing, I am getting a blank page. No errors, no text … nothing.

      I hate to start over as I like this concept and the App seems to be installed properly but I believe like you, I am missing a step?


  13. shorty says:

    Hi, this is for phone apps? For the “welcome Tab apps” beside the facebook fan page? What’s the end result like? We’ll have a phone apps?

  14. Jimmy says:

    THANK YOU for this- I am an advanced ‘noob’ but need a little hand-holding! Questions:
    Like you, I created a subdomain called
    1- Do you suggest that I upload the entire newfbapp folder- and my edited index.php file- to the root directory of my domain? If not, what files need to be uploaded and WHERE do you suggest they be placed? I did just this and then pointed the App Domain in FB to to this dir on the root of my website and it says that it is not a valid domain….

  15. Gaetano says:

    This guide isn’t very noob-friendly and there are errors everywhere.

    “In the index.php, make sure to change values for App Id and App Secret.

    After publishing the page, test if everything works and if you go directly to it, it shows default content (state when don’t “Like” the page).”

    Not even sure what the hell that means.

    I think I’ll look elsewhere for a more accessible guide. Thanks anyway!

  16. Oliver says:

    excellent work…

  17. LizJ says:

    I have followed all of your instructions, I am a featured admin and page owner, and when I try to run step 4, I continue to get this error:
    API Error Code: 191
    API Error Description: The specified URL is not owned by the application
    Error Message: redirect_uri is not owned by the application.

    Any help would be great! Thank you!

    • Slavik says:

      LizJ, just to rule out the obvious — does the [Page_Tab_URL] you’re substituting in Step 4 matches the one specified within App (screenshot under Step 3)?

      If this and App ID are correct, please double check App Id / App Secret in index.php:

      ‘appId’ => ‘xxxxxxxxxxxxxxx’, // enter your App’s ID
      ‘secret’ => ‘xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’, // enter your App’s Secret

    • Hammer says:


      Thanks for the great tutorial. I followed the steps, created the app and installed it. Put ID code and secret code in the index.php. I intalled the app on my facebook page. But When I click on the welcome tab all that shows up is a blank page. No text, no errors. Nothing.

      Obviously I missed a step.

      My thinking is I do not know how the php code knows how to manage the redirect. Where do I tell it what/where the designed pages are?

  18. Graham says:

    very interesting post. Must of been good as I think even I followed it!
    I would like to set up a landing page on FB BUT as a one off offer with maybe an auto responder installed so I can send the “like” person an email with a money off coupon. Is there any way you can help out

  19. Mart Prööm says:

    The download link for SDK + index file has been added, sorry everyone! You can download the zip at

  20. Dave Maurice says:

    baffled by the recent changes this post clarifies the process. I’m I missing something that you have not provided the page that serves different pages for Liked and Unliked visitors?

  21. Jimmy says:

    ..Muy buen posst, pero solo unpar de preguntas, no logro añadir la pestaña al facebook.. en la url añadi el id y la ruta de la pagina y nada, porfavor si fueras tan amable de explicar porfavor, gracias

  22. The Dude says:

    You don’t need a PHP server to create a custom facebook landing page. You can use any type of web server.

  23. Mahfuzur Rahman says:

    This is great dear. keep it up

  24. Slavik says:

    Thank you — creating a page tab might get pretty confusing (especially when FB updates the process so frequently), hence so many screenshots.

  25. Thanks for the post. That is one of the most detailed descriptions I have seen for creating a FaceBook fan page. Anyone else get annoyed when someone sends you a message in your inbox asking you to like their page?

Leave a Reply

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

Turn content into leads & sales!

Sign up and get the latest information

Sign up for free updates!