léonardrodriguez
Menu

How to Create a Tab on Your Facebook Page

An archived 2011 tutorial on creating an iFrame tab and adding it to a Facebook page after the end of FBML tabs.

Customizing Facebook page tabs
A custom tab in the classic Facebook Pages interface.

UPDATE: This article was written in 2011. Facebook has changed considerably since then. The follow-up, 2012 Tutorial: Adding an iFrame Tab to Your Facebook Page, updated the process described here. It also included a bonus PHP tab template that displayed different content depending on whether the visitor was a fan of the page.


Custom Facebook tab

In early April, I changed jobs. I now work at Novoceram as web development manager. Naturally, my first assignment takes me into unfamiliar territory:

facebook

Facebook. Working on something I already knew inside out would have been far too easy!

With FBML and the old boxes discontinued in mid-March, finding a useful tutorial wasn’t straightforward. So I decided to share what I was learning about Facebook tabs and apps.

How to create an iFrame tab and add it to a Facebook page

1. Create your HTML page

The new tabs are simply HTML pages – or pages generated by another language – that you host on your own server.

For the layout, I prefer to keep things simple and use tables, much as I would for an email. At the time, you could also use JavaScript, video, jQuery, Google Maps, Flash, Facebook Like buttons, and other social plugins. You could add analytics tracking, too. Open your favorite HTML editor and build the page:

HTML page

Next, we’ll give Facebook the URL of that page so it can display it inside a tab using an iFrame.

2. Create the app

We’ll create an app specifically to add this tab to the Facebook page.

  • Open the Facebook developers page.
  • Click ‘Set Up New App’ in the upper-right corner.
  • Enter the app name, accept the terms, and continue.
  • The ‘Basic Information’ tab needs to sets the tab name and icon shown in your page’s menu.

  • Click Website on the left.
  • Under ‘Site URL,’ enter the website address where you uploaded your page.
  • Click Facebook Integration on the left.
  • Enter the Canvas URL, again using your website’s main URL.
  • In the same section, enter the tab name under ‘Tab Name.’ This is the name visitors will see in your page’s menu.
  • Enter the URL of the page you created. This is the page the iFrame will display.
  • Save your changes.

3. Add the tab to your Facebook page

After saving, you’ll reach the summary page. Click Application Profile Page.

application profile page

On the app’s page, click Add to My Page in the lower-left corner. Select the page where you want the tab and click Add to Page.

Adding a tab to a Facebook page

4. Set the tab as the landing tab

Want visitors who haven’t liked your page to land on your custom tab? Here is how the setting worked:

  • Go to your Facebook page.
  • Click Edit Page in the upper-right corner.
  • Choose Manage Permissions on the left, then select your tab under Default Landing Tab.
  • Save your changes.

Facebook users who weren’t yet fans would then land on your custom tab.

The example we built was on the Football-Session.com Facebook page. For the soccer skeptics impatient readers, here is a screenshot:

Football Session Facebook landing tab

That’s it! More tutorials to come.

You can also read how to show or hide content and create fan-only Facebook pages.

HistoryPublication, updates and clarifications
  1. Update
  2. First published

Keep exploring.

All articles ↗

SUGGEST A CORRECTION

Spotted an error?

Tell me which passage needs correcting. Include a source if you can, so I can check it.

We use the information you provide to respond to your message. How your data is used