|
May 5, 2010
 Customize Your Facebook Fan Page with Static FBML (Facebook Markup Language)
What is a "Fan Page"
Facebook Fan Pages are for businesses, bands, products, websites, and organizations. It works very much like a standard Facebook profile in that you can post status updates, photos, videos, etc. For brick and mortar businesses you can configure your location, hours and parking information. You need a regular or personal Facebook page to setup and configure (administrator) a fan page; you can't just have a fan page. You can configure multiple administrator accounts so that more than one person in your organization can update the fan page.
Custom URL for Your Fan Page:
Once you reach 50 fans, you can set a custom URL for your Fan Page. For example: http://www.facebook.com/fwblack - Go to this link http://www.facebook.com/username/ to set a custom URL for both fan and personal pages. Note that you cannot change it once you set it, so put some thought into your URL.
Like vs. Fan
In April 2010 Facebook changed the "Become a Fan" button to a "Like" button. Prior to April, someone could click the "Become a Fan" button for your Fan Page and they would be added to your fan list. Now they click the "Like" button which does the same thing. Personally I prefer the "Become a Fan" button, but Facebook feels the "Like" button is "softer" and requires less of a commitment therefore should increase the number of fans. One of the nice things about a Fan page is that when someone "Likes" you by clicking the "Like" button it is displayed to all their friends that they "Like" you, and that should increase your number of fans.
FBML = Facebook Markup Language
Just like with a regular Facebook profile you can add tabs for different functions and apps, one of the differences with a "Fan" page is you can add a tab with an app called Static FBML (Facebook Markup Language) and use your own HTML and limited JavaScript. This lets you setup custom welcome pages, request forms, email signups, etc. You can even setup a form that submits using AJAX so the user never leaves Facebook. This is very important as part of the "culture" of Facebook is that people don't necessarily like to click something that takes them off of Facebook. I will show how to do this AJAX submission in the next post on this topic.
Boxes vs. Tabs
Static FBML can create a box in the left column of your "Fan" page, and/or, a new Tab.
JavaScript
Facebook FBML does not let you actually use just any JavaScript directly. Instead they have compiled a library of JavaScript that you can use. If you try to use something besides the commands they allow, it will be commented out or removed when the page is rendered.
Images
You can embed images you've upload to your Fan page using FBML, but it's easier to upload images to your web site and reference them from FBML.
Default Landing Page
Once you create your Static FBML tab, you can set which tab a new visitor to the page (meaning a non-fan and a non-admin) will see first. (Once a person "Likes" you, or is an administrator, they will default to the Wall tab).
To set this:
- Click "Ads and Pages" in the left column of your facebook profile.
- Click edit on the fan page and then
- Click edit in the Wall Settings Section
- In the "Default Landing Tab for Everyone Else" Select the name of your Static FBML tab.
Getting Started - Adding Static FBML to your page
To add Static FBML to your account:
- Type "Static FBML" into the search box.
- Click on the "Static FBML" that shows and then
- Click "Like" this will make you a fan.
- In the left column click the link that says "Add to my Page", this will open a dialog box that lets you select which of your "Fan" pages to add the Static FBML app.
- Click the "Add to Page" button beside the "Fan" page or pages you want to use Static FBML, then
- Close the "Add Static FBML to your Page" dialog box.
- Click the "Home" link in the top right corner
Selecting Box vs. Tab
Static FBML can add a tab and/or a box in the left column of your Fan Page.
- Click "Ads and Pages" in the left column
- If you have multiple "Fan" pages, select the "Fan" page you want to edit
- Scroll down until you see the "FBML - FBML" (or the name of your FBML tab or box) section and click "Application Settings".
- From here you can click "add" or "remove" to add or remove the box or the tab.
External CSS vs. Inline Styles
You can use either. Like using external images, you call an external style sheet from YOUR web site. If you call an external style sheet, use this syntax:
In the example below I used inline styles which are easier when doing something simple like this example. In one of my subsequent articles on this topic I'll change to external styles sheets in the example.
If CSS, HTML, Inline Styles sound like a foreign language to you, get my FREE courses:
Editing Your FBML Page
- Click "Ads and Pages" in the left column of your facebook profile.
- If you have multiple "Fan" pages, select the "Fan" page you want to edit
- Scroll down until you see the "FBML - FBML" (or, [name] - FBML once you give it a name) section and click "Edit".
- You can edit the HTML code here.
I prefer to edit HTML it in a text editor and paste it in vs. editing in this little box.
Creating More Tan One FBML Tab for Your Fan Page
If you want more than one, you can do that too!
- Click "Ads and Pages" in the left column of your facebook profile.
- Click "Edit Page" for the Fan Page you want to edit,
- Scroll down until you see the "FBML - FBML" (or, [name] - FBML once you give it a name) section and click "Edit".
- Below the fields for the box click "Add another FBML box";
Basic Example:
Below I'll give you the exact HTML code I used to create the FBML tab for my pqGallery Fan Page.... I didn't use any of the FBML codes, just regular HTML and I referenced images from the pqGallery web site. As mentioned above, I used inline styles. Please visit the pqGallery Fan Page... and become a "Fan" by clicking "Like" - also checkout pqGalleryand setup an account!
I've included a screen shot because in the next few articles on this, I'll keep modifying the code to create different examples. You can look at the code and this screenshot to see what it does.
 pqGallery Facebook Fan Page Static-FBML Tab Example 1, Created using the code shown below.
HTML Code For pqGallery Fan Page Static-FBML Tab
This is the actual HTML code used to create the Tab shown in the screen shot above and on my pqGallery Fan Page...
pqGallery Photo Galleries...
- It's Fun to Share Your Photos!
- Shrink the distance between family and friends.
- Available anytime from anywhere.
- Keeps your digital images organized.
- Lets you share your fun times, special times, great photos, children, pets, etc.
- A great way to keep a record of your child's growth: post a set of photos each month when they're babies or toddlers and you'll constantly be amazed at how fast they change and grow.
- Stores your Original Full Sized Photos without Altering Them - You Have a Backup in Case Your Computer is Lost or Stolen.
- It's Free!
- Setup Multiple Free Accounts with one email address.
Click Here for More Information!
Click Here to SIGN UP!
pqGallery Examples
Facebook Fan Pages and Static FBML - Part 2
Until Next Time,
Fred
About the Author
Fred Black is an experienced online business operator, programmer, web site developer, father, husband, musician, and songwriter. Visit his Internet Business Blog at: http://www.pqInternet.com.
|
|
You may reprint or distribute this article as long as you leave the content and the About the Author resource box at the end intact. |
Posted by Fred on May 5, 2010 | Printer-Friendly
TrackBack: http://www.pqInternet.com/Blog/mt-tb.cgi/228
Assigned Categories:
Social Media
| Web Site Design, HTML, CSS
Related Entries:
|