How To Use WordPress To Create Iframe Fan Page For Facebook

by Sudipto Samanta on March 26, 2011

in Technology

WordPress For Facebook Fan PageFacebook is soon going to discontinue FBML very soon and the option to add static FBML to new fan pages has already been removed. The solution is to use a WordPress blog and utilize the Facebook’s iframe app to create a Fan Page.

To do this first you have to install WordPress on a sub-domain or in a new folder on the existing domain. I have installed a fresh copy of WordPress on fanpage.promagz.info.

I am assuming that you already have a fan page and if you don’t have one; you can go to ‘Create a Facebook Fanpage‘ and create one. Just make sure that when creating a fan page you don’t select the ‘Cause or Community‘ option as this option doesn’t let you choose a custom landing tab for your fan page.

Next you need to create a Facebook app and for that just go to Facebook Developers and click the ‘+ Set Up New App‘ on the top right. On the next page enter an ‘App Name‘, choose ‘Agree‘ and hit ‘Create App‘.

Create An App

On the next page write a short description for you app and if you want you can also choose an Icon and a Logo for you app.

Creat A Face Book App

Next click on the ‘Facebook Integration‘ tab you will be presented with the following screen.

Fan Page Using WordPress

Fill in the following fields:

  • Canvas Page: Just give a name. This will be your app url.
  • Canvas URL: Enter the URL of the new WordPress Blog that you have created for fan page. Make sure that you give a trailing slash [/] at the end of the url. For e.g. http://fanpage.yourdomain.com/ or http://yourdomain.com/fanpage/
  • Canvas Type: Choose Iframe
  • IFrame Size: Choose Auto-resize
  • Tab Name: Give a Tab name, it will be the apps tab name when added to the sidebar
  • Tab URL: Enter “index.php”

Next click ‘Save Changes

On the next page click on the ‘Application Profile Page‘ on the right.

Facebook Application Profile Page

You will see a page that looks like the image below. Click on “Add to My Page” on the left.

WordPress Facebook Iframe Fan Page

A pop-up window will open with all the pages that you have created will open. See the image below. Click on the “Add to Page” button next to the page of you choice and your app will the added to the page.

Facebook Fanpage WordPress

After your newly created App has been added to the fan page it will look like this. Just go to your fan page.

Facebook Fan Page

Next you have to edit your fan page settings so that so that you can set your default landing tab. To do this just go to your fan page and click the “Edit Page” button on top right of the page. On the next page go to “Manage Permissions” tab and on the “Default Landing Tab” option select the tab name that you have just created and hit “Save Changes“.

Fan Page Default Landing Tab

That’s it. You will be able to see your newly created “WordPress” tab as the default landing tab when you visit your page. You can also check out the WordPress tab on the ProMagz Fan Page.

WordPress Themes For Facebook Fan Page:

The theme width for the WordPress Blog that you have created for the Facebook fan page should be 520 pixels wide because the Iframae width of the fan page is 520 px. If you cannot find a WordPress Theme for Facebook Fan Page you can use the themes that I have created with Artisteer.

WordPress Fan Page ThemeProMagz Fan Page ThemeFacebook Iframe WordPressFacebook Fan Page ThemeWordPess Fan Page ThemeBest Fan Page WordPress ThemeWordPress Theme For Facebook Iframe FanpageFacebook Iframe WordPress Theme


Also Consider Reading :

Troy April 2, 2011 at 5:55 PM

Here is a simpler way to do this. Try the Page iFrame Tab App http://apps.facebook.com/pageiframetab

Reply

Pali Madra April 3, 2011 at 9:53 PM

I created a new facebook page at http://apps.facebook.com/hairmakeup/. I added the app to my profile but it is not showing up on my profile page at http://www.facebook.com/palimadra.

Though I’m pretty sure I added the app to my profile but it seems that I did not take that step. Is there something that I can do to fix this. Please advise.

Thanks in advance.

Reply

Sudipto Samanta April 8, 2011 at 5:28 PM

What did you mean by “added the app to my profile”? You need add the app to your page.

Reply

Ahmed Hamouda July 21, 2011 at 4:46 PM

Hey Sudipto.. thanks for the great tutorial..
I make wordpress themes without Artisteer… I write the code myself.. and when I made the wordpress theme and added it as an iframe.. it appeared properly but when I press any link inside the website it loads in the website not in the facebook like themes you added for download.. I wonder how to solve this problem..

Thanks in advance :)

Reply

Sudipto Samanta July 30, 2011 at 10:49 PM

Check your links. You should not use open link in new window [target="_blanK"]

Reply

Carpet cleaning October 5, 2011 at 5:40 AM

Hey Sudipto,
Your themes are really nice!

How do you get rid of the scrollbars now that Facebook doesn’t seem to have “Auto-Resize” anymore?

Or am I missing it?

Thanks,

Wally

Reply

Sudipto Samanta October 19, 2011 at 4:11 PM

Your fanpage looks perfectly OK to me. I see no scroll bars..

Reply

Leave a Comment

*

Previous post:

Next post: