Snipe.Net - Geeky Stuff
Twitter
Currently: @etamotweet dammit - you still there? Crap reception and my phone is almost dead in reply to etamotweet 5 hrs ago

Extending Facebook Static FBML Tabs with Dynamic Content

This tutorial walks you through how to use DynamicFBML to do simple content replacement that will allow you to fit more content into your tabs. You can create image or video galleries, or even an entire micro-site inside your Static FBML tab without a lot of complicated scripting.

If you’re not sure what Static FBML is, check out my previous tutorial that shows you how powerful the Static FBML application can be, and how you can create very compelling, highly branded Facebook Fan page tabs without the hassle of building a custom Facebook application.

At its most basic, the functionality we’re discussing is simply one or more text or image links that, when clicked, cause content in a set space to change. Some potential uses:

  • Dynamic image gallery where the user clicks on a thumbnail to see a larger version of the image
  • Video gallery that allows you to include thumbnails on the video that loads the selected video into a single player space. This can be particularly helpful in tightly designed Static FBML pages where you have limited space to display a lot of content.
  • Or even using your Static FBML tab as a mini-site, replacing the entire tab’s content with new content to simulate multiple pages

We’re going to explore a few examples in this article, but it’s basically the same code regardless of how you apply it. First, let’s look at creating a micro-site within a Facebook Static FBML tab – see a live demo of the tab we’re going to create here.

Notice the navigation within the tab itself (Home, Specials, Locations, About). Clicking on them displays new content in the entire tab without actually reloading the page. This is an example of Facebook’s DynamicFBML, and you won’t believe how easy it is to implement. Seriously, you won’t.

snipe_tab

So, okay… maybe that tab isn’t the fanciest thing you’ve ever seen, but it gives you a clear idea of how this works. How plain or sophisticated the design is depends entirely on you and how comfy you are in a graphics program.

If you dig the cool-looking button CSS in the test page, you can learn how to get that effect by visiting ZurbBlog’s post on Super Awesome Buttons with CSS3 and RGBA.

But here’s the great part: the code needed to create that tab is basically this:

<!-- navigation elements -->
<a href="#" clicktoshow="nav1" clicktohide="nav2,nav3,nav4">Home</a>
<a href="#" clicktoshow="nav2" clicktohide="nav1,nav3,nav4">Specials</a>
<a href="#" clicktoshow="nav3" clicktohide="nav1,nav2,nav4">Locations</a>
<a href="#" clicktoshow="nav4" clicktohide="nav1,nav2,nav3">About</a>

<!-- Content to display when user clicks on the Home tab -->
<div id="nav1">
	Homepage text
</div>

<!-- Content to display when user clicks on the Specials tab -->
<div id="nav2" style="display: none;">
	Specials text
</div>

<!-- Content to display when user clicks on the Locations tab -->
<div id="nav3" style="display: none;">
	Locations text
</div>

<!-- Content to display when user clicks on the About tab -->
<div id="nav4" style="display: none;">
	About text
</div>

Seriously. That’s it. That’s ALL there is to it. Naturally, I stripped out the extraneous text, images and styles from my demo for simplicity’s sake, but that’s honestly it.

This is arguably the one thing that is exactly as easy as it appears to be with regard to developing anything for Facebook.

This code is fairly straightforward, but let’s take a look at what’s happening here.

In the first part, we’re setting our links. For the micro-site, these are our navigation links. Everything here looks like pretty standard HTML except for the extra “clicktoshow” and “clicktohide” elements. (Note: The links do not have to be set before the content divs – you’ll set them wherever they make sense in your design. You’ll see an example of this further down the article in the image gallery sample.)

<!-- navigation elements -->
<a href="#" clicktoshow="nav1" clicktohide="nav2,nav3,nav4">Home</a>
<a href="#" clicktoshow="nav2" clicktohide="nav1,nav3,nav4">Specials</a>
<a href="#" clicktoshow="nav3" clicktohide="nav1,nav2,nav4">Locations</a>
<a href="#" clicktoshow="nav4" clicktohide="nav1,nav2,nav3">About</a>

The clicktoshow element allows you to specify the id’s of the elements you wish to show when the link is clicked. Conversely, the clicktohide element allows you to specify the ids of the elements you wish to hide when the link is clicked.

In our navigation elements, since the div that contains the homepage text is set as nav1 in our HTML, we want the clicktoshow for the Home link to be nav1 (since we want that div to show when we click on it.) Likewise, since we’re completely replacing whatever div is currently visible with the nav1 div contents, we want to specify everything that isn’t nav1 in the clicktohide.

Combining divs in hide/show

What’s particularly fun about the clicktoshow and clicktohide (other than their sheer ease of use) is the fact that unlike a more complicated true JavaScript version, showing and hiding two or more divs at the same time on the same click is simply a matter of specifying them in the clicktohide or clicktoshow parameters.

<!-- set up our text links -->
<a href="#" clicktoshow="nav1" clicktohide="nav2,nav3">Oh</a>
<a href="#" clicktoshow="nav2" clicktohide="nav1,nav3">Hai</a>
<a href="#" clicktoshow="nav1,nav2" clicktohide="nav3">Oh Hai</a>
<a href="#" clicktoshow="nav1,nav2,nav3">Oh Hai SRSLY!</a>

<!-- Content to display when user clicks on the Home tab -->
<div id="nav1">
	Oh
</div>

<!-- Content to display when user clicks on the Specials tab -->
<div id="nav2" style="display: none;">
	Hai
</div>

<!-- Content to display when user clicks on the Locations tab -->
<div id="nav3" style="display: none;">
	SRSYLY!
</div>

In the snippet above, we’re using only three divs with four nav elements. By specifying multiple ids in the clicktoshow parameter, we can show multiple divs at once, so when you click on “Oh Hai SRSLY!”, you’re looking at nav1, nav2 and nav3 all being shown at once. Piece of pie.

snipe_tab_funky

Example Image Gallery

One more example that will hopefully get your creative juices going – let’s look at how to do an image gallery using only clicktoshow and clicktohide.

In this gallery, we have a set of thumbnails with one large space set aside in our design where the fullsize image will display. You can see a simple demo of this gallery here.

gallery

Now take a look at the sourcecode below. Notice that we’re using the exact same code as we used in the other examples - we’ve just changed the names of the divs so they make more sense semantically in a gallery.

<!-- set the divs for the fullsize images -->
<div id="image1">
	<img src="http://www.snipe.net/wp-content/uploads/2009/10/full-1.jpg"/>
</div>

<div id="image2" style="display: none;">
	<img src="http://www.snipe.net/wp-content/uploads/2009/10/full-2.jpg"/>
</div>

<div id="image3" style="display: none;">
	<img src="http://www.snipe.net/wp-content/uploads/2009/10/full-3.jpg"/>
</div>

<div id="image4" style="display: none;">
	<img src="http://www.snipe.net/wp-content/uploads/2009/10/full-4.jpg"/><br />
</div>

<!-- set up our thumbnails -->
<a href="#" clicktoshow="image1" clicktohide="image2,image3,image4">
	<img src="http://www.snipe.net/wp-content/uploads/2009/10/thumb-1.jpg"/>
</a>

<a href="#" clicktoshow="image2" clicktohide="image1,image3,image4">
	<img src="http://www.snipe.net/wp-content/uploads/2009/10/thumb-2.jpg"/>
</a>

<a href="#" clicktoshow="image3" clicktohide="image1,image2,image4">
	<img src="http://www.snipe.net/wp-content/uploads/2009/10/thumb-3.jpg"/>
</a>

<a href="#" clicktoshow="image4" clicktohide="image1,image2,image3">
	<img src="http://www.snipe.net/wp-content/uploads/2009/10/thumb-4.jpg/>
</a>

By the way – if you dig the images used in that sample gallery, be sure to check out the Great Pumpkin Roundup post that shows examples of some of the most amazing pumpkin carving you’ve ever seen in your whole life.

In a project for vitamin water, I needed to create what appeared to be a dynamic video player, using only the default Facebook media player, which doesn’t support options like having a playlist where people can click on a gallery of thumbnails and load the video into a single player. See below:

new_moon_tab

The code used to pull this off is almost identical to the image gallery example above. No foolin’.

But wait – there’s more!

An additional DynamicFBML function that you may find useful is Clicktotoggle, which is very similar to Clicktoshow and Clicktohide, except instead of turning visibility on and off by clicking on on different links, you toggle visibility on and off by clicking the same link.

Your takeaway

While I certainly hope that the code presented here will be useful to you, the concept of what you can do using clicktoshow and clicktohide is more important. You’re not limited to creating a micro-site or an image gallery. Get creative and have some fun with this. Not many people are being adventurous in their Static FBML tabs yet, so you have an opportunity to really wow your users with your newfound skills.

Additional Resources

Also check out:

If you think this article kicked ass, subscribe to the RSS feed or follow me on Twitter! Share with your friends, or leave a comment below (or better still, do both!) My entire concept of self-worth is in your hands, so that makes you kind of a big deal. Srsly.

This entry was posted on Saturday, October 17th, 2009 at 1:16 am and is filed under Featured, Web Development. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  • Alexandra
    Where do I add the styling for the buttons? I'm confused.
  • It's basic HTML/CSS, so you would add the style info at the top of the page, like you normally would with an HTML page.
  • Absolutely amazing idea. Thanks to this tutorial, I was able to create a new look for my business's landing page. Check it out! http://www.facebook.com/RomanticPassions?v=app_... I used the div hide/show tags to create a mini page flip through within the site itself. To see this, click on the products link on the right side. By the way, I am NOT a professional developer or designer. Simple technique. Great results.
  • Thanks for this great post.
    I created some test pages when I first read this article last year. But after FB's recent changes concerning the Welcome tab, I only get the nav1 view. Here's the beginning of the code:

    <!-- navigation elements -->
    <img border="0" src="http://www.localmarketpower.com/images/welcome.jpg" width="128" height="33">
    <img border="0" src="http://www.localmarketpower.com/images/ourservices.jpg" width="128" height="33">
    <img border="0" src="http://www.localmarketpower.com/images/contact.jpg" width="128" height="33">
    <img border="0" src="http://www.localmarketpower.com/images/recommended.jpg" width="128" height="33">

    It was working fine and I used to get 4 different views via the 4 clickable images. I never changed the code but now only nav1 shows?
  • code is
    http://localmarketpower.com/images/ourservices.jpg
    http://localmarketpower.com/images/contact.jpg

    and those image paths are working

    I noticed that image paths you tried are missing the / after .com
    Was that a typo or did you get those paths from a link?
  • I copied them from the code you posted.
  • Sorry about that, here's the code again:

    <!-- navigation elements -->
    <img border="0" src="http://www.localmarketpower.com/images/welcome.jpg" width="128" height="33">
    <img border="0" src="http://www.localmarketpower.com/images/ourservices.jpg" width="128" height="33">
    <img border="0" src="http://www.localmarketpower.com/images/contact.jpg" width="128" height="33">
    <img border="0" src="http://www.localmarketpower.com/images/recommended.jpg" width="128" height="33">

    <!-- Content to display when user clicks on the Welcome tab -->

    I posted all the code here: http://pastebin.com/dtEKqXJW

    Seems like it started after they nixed the Welcome tab but then changed their mind. I also remember something about changes to boxes so don't know if that had anything to do with it?
  • Never mind. I feel like an idiot. I had recently done a 301 for the www and forgot to update the code. Duh! And that explains the mangled path too. Sorry to bother but once again thanks for the great post.
  • Hah - okay, that explains it. I was pasting the url directly and it kept reslolving to that broken hostname. Glad you got it sorted out. :)

    If you're interested, I did a follow up post with a more advanced version here:
    http://www.snipe.net/2010/05/static-fbml-micros...
  • cardeo
    Nice post, very useful
  • stonedPanda
    I fucking love you! You've just saved me $99 from buying this kind of layout from some crappy web design company!
  • Hlnfan39
    Bit of a question. When creating your FBML tab, your tab name in the picture =, "Snipe.net Test Tab" is longer that the typical tab name, but is still showing in the image. When creating my tab, it truncates the name with... Is there a way to show the entire tab name?
  • The tab name will always appear in full when the tab is selected. It's when the tab is not the active tab that it gets truncated.
  • Liz
    Heya,

    I copy/pasted your code into my box and it doesn't work. Has the way it work changed since you did the article?
  • No, it hasn't changed, but FB has been very buggy today. That's probably why.
  • great article - I was just looking for FBML documentation but I came across one of your posts and now I'm reading through many others you've written. Thanks for making this all seem so easy!
  • Marshmello
    Wow! This is a great help for fan pages! Great work! Please show me the full coding of you page? I want to see how you combined the link tabs with the images so that it appear as a button. Thank you
  • Just use the styling detailed in the link I provided: http://www.zurb.com/article/266/super-awesome-b...
  • Switchbladehunter
    Yes, I viewed the page, but I don't where in the coding I must put the code provided on that website? Here is my coding (like provided above):

    News

    Releases

    Events

    Band of the Week

    <div id="nav1">
    text
    </div>

    <div id="nav2" style="display: none;">
    text
    </div>

    <div id="nav3" style="display: none;">
    text
    </div>

    <div id="nav4" style="display: none;">
    text
    </div>

    Can you please tell me where to insert the coding provided on that website. I'm a little useless with coding.

    Here is the link of the page I'm trying to put buttons on: http://www.facebook.com/pages/I-Love-Metal/4671...

    Thanks in advance!
  • Nice post, thanks,

    Anyway, don´t you think that too many content could distract users? I keep on thinking that it´s better keeping your FB page simple and redirect users to your website ( where you have absolute control) if they want further information.
  • Depends entirely on your audience and the content you provide. If your audience is very facebook-centric, why not exists where they exist?
  • Cat
    Thank you so much for this page! It allowed me to get at least some customization to my company's FB. Now I can go thru and jazz it up later. :) You rock!


    The only thing I am having an issue with is that in IE, it seems to work fine, but in Firefox it acts all hinky and instead of just flipping between the tabs it keeps going home when I click on a tab. Your page works fine so it must be something I've done wrong somewhere. :/ Oh well, at least there is something up on our page now.

    Thanks again!
  • AdeleMB
    Hi,
    This has been soooo helpful! Thanks!
    I was hoping you might know if there is a simple way to add a caption to each image when full size?
    Thanks :-)
  • Hi Adele - not sure what you mean exactly? If you just wnt to add some text with the image, just include it inside the divs that you're making clickable.
  • Gemmie
    All of your information is really helpful. Reading through all of the comments I haven't found a possible solution to a problem I have come across, though.

    I am trying to place an optin form in an FBML tab with a background image. I have it all in place and showing well in Chrome, Firefox and Safari, but the image doesn't show in IE. I'm using inline css. When I try to set up style tags and use them in div's, the image disappears from showing in all of the browsers.

    Can you help me out with a solution? Thanks.
  • Hi Gemmie - I'd have to see a sample of your code to be helpful. Can you paste your code into pastebin.com and then reply with the link that's generated so I can see it?
  • Gemmie
    The link to an example of my code is http://pastebin.com/1rjPMvd8. I know my code is wierd and you shouldn't put it like this in a table, but it was the only way I could find that sort of worked. As I said, the subscription box shows in Chrome, Firefox and Safari, but not in IE. I have continued to play with it, but can't find anything that fixes this problem.

    So thanks for any and all the advise you can give. Much appreciated.
  • Shailendra Deogam
    Hi,
    Thanks for the great article. I have been looking for FBML article since Friday. I got the best article here only. The only thing I am missing here is the dynamic FBML. I would like to know how to make a clickable part on an image. Say, I have an image of face of a girl and when I click on her left eye - it will take me to XY link and on right eye - it should take me to YZ link.
    Thanks in advance.
  • Hi Shailendra - what you're describing isn't dynamic FBML, it's simple CSS. Facebook doesn't allow imagemaps, so a CSS method is required. There is a decent tutorial here: http://www.marketingtechblog.com/programming/cs...
  • Wow, I had no idea Facebook navigation within a tab was so easy to do!
  • Thanks for providing source code. I have been using many different approaches to customizing my brand page and now need to step it up. I'm a quick learner but I definitely need examples to learn from. Thank you so much for posting this valuable information and I am much obliged!
  • I was looking for the best way to implement custom tabsin FB, then cam across your article. Combined with the CSS button trick, this is excellent! About to try it out on a client's Fan Page. Thanks!
  • Awesome, as usual. You continue to save me money by allowing me to do the work myself.. Thanks again. Now if only I could get some information on what it would take to have "tell your friends"... similar to the twilight page (new moon) - if anyone has any ideas....
  • Glad to help :)

    As for "telling your friends", I don't actually remember what we did for the twilight page, but it's pretty easy to implement a FB Share link. Share links show up in the stream, so all friends of the user see it (versus an invite functionality that lets you pick specific friends). It's been what we default to more than invite, since invites get drowned among the 900 other requests people have on that page. http://wiki.developers.facebook.com/index.php/F...
  • Awesome. Thanks so much for pointing us in the right direction. Love the site!
  • Davis
    Thank you for posting such useful info and in a way a COMPLETE beginner with no training understands.

    First, I've created a pretty decent layout with your hide/show codes. Is there a way to create "SUB-hide/show" content? That is, if I click on "Button ABC" can the content revealed under Button ABC have it's own set of hide/no-hide buttons with content? In essence, it looks as though there's another "page" of button choices and the customer has never left the single tab.

    Second, is there coding that I can add to the simple "button" that either highlights it OR changes the curser into a hand?

    See? I told you I was a super dooper noob.

    Thanks in advance!
  • Hi Davis - sure, you can nest hide/show divs inside of an existing hide/show div - just pick different div names and assign them accordingly to the clicktohide/clicktoshow.

    Highlighting the button on mouseover, or to show the current tab?
  • Davis
    WOW. Fast response, thanks! Highlighting the button on mouse over or having it change color, which ever is easiest AND showing current tab... if it's not too much to ask.
    Thanks again!!!!!
  • Showing current tab probably wouldn't be possible without some FBJS - or without doing some kooky div work - which is possible, just hard to explain. You can see an example here:
    http://www.facebook.com/GVIfans?v=app_328187193031

    What I basically did was make each entire page - including the clickable tab nav - inside the divs that get hidden and shown. So the default loading div has [nav] and [content]. When you click on a nav item, it hides the ENTIRE default div, including the [nav] and [content] and shows the new div, which has its own [nav] and [content] with the [nav] showing the current div highlighted.

    See, it's confusing :)
  • Davis
    I'm BEGINNING to see. :)
    Is there a simple way for simple folks like me to change th color of the basic button?
  • I'm not 100% sure what you're calling a "basic button"?
  • Davis
    Sorry, again, noob talk here. I was just looking for the simple code to change color on the following type of button:
    <button type="button">Gulf Coast Ford</button>

    I've tried several different code variations and I am OBVIOUSLY missing something ultra simple; I've been in front of the computer too long and it's all just fuzzy at this point.

    Sorry to take so much of your time for such a super simple concept, for most.
  • Not sure if my comment system ate the code... Would be:
    {button type="button" style="color: red; background-color: white;"}Your text here{/button}, but replace the curly braces with normal > < tags from HTML. I probably wouldn't use a button element and would just use text, just because the button HTML element can be a little wonky in some browsers, but it's up to you.
  • Davis
    AWESOME, thanks so much again and I'll post the link once I get my little page setup.
    Take care!
  • No problem, glad to help :)
  • You would use CSS. <button type="button" style="color: red; background-color: white;">Gulf Coast Ford</button> - that type of thing. Lots of great CSS tutorials here: http://www.w3schools.com/css/
  • Josh
    The code works once or 2 times, then it didnt work in my case. im using:

    <!-- navigation elements -->
    Home
    Specials
    Locations
    About

    <!-- Content to display when user clicks on the Home tab -->
    <div id="nav1">
    Homepage text
    </div>

    <!-- Content to display when user clicks on the Specials tab -->
    <div id="nav2" style="display: none;">
    Specials text
    </div>

    <!-- Content to display when user clicks on the Locations tab -->
    <div id="nav3" style="display: none;">
    Locations text
    </div>

    <!-- Content to display when user clicks on the About tab -->
    <div id="nav4" style="display: none;">
    About text
    </div>

    WHICH IS THE FIRST CODE, POSTED ON THIS SITE.

    THE PROBLEM: content is not changing as i click, any link it always says "home page content"


    Any help would be great, thanks
  • Gerish
    All code stated above doesn't work to mine, I am wondering why.,
  • Don't know - it's worked for lots of people, and I reuse this code all the time. Perhaps you could be a little more specific with respect to what "doesn't work" means?
  • David Henrich
    I was having the same problem. What caused it was I had the FMBL box: "available", once I removed that the code worked. For those having the same problem: Click the Main page, Edit -> Click "Application Settings" under FBML, -> click the "(remove)" link that is to the right of "Box:"
  • thank you sooo much!!! this is awesome. i'll definitely use it on my page :)
  • Charlie
    Thank you so much. Seriously, I've searched high and low for a way to do a tabbed box in Facebook without having to use JavaScript, but to no avail. I almost feel stupid for not having discovered DynamicFBML earlier, given how much time I've spent pouring over pages upon pages of Facebook documentation. These clicktohide and clicktoshow attributes are definitely going to make my job a lot easier.
  • It's totally not your fault. These functions are incredibly useful yet remarkably well hidden within the FB docs. One would think they would highlight them, since they are SO easy to use and add so much additional functionality. But you know and I know how craptastic the FB docs are...
  • Great post...Just Great!
  • This is post the bomb! Thank you for sharing this, this is what I've been looking for. :) Really thank you!
  • Glad it could help!
  • Hello friend, excellent post, do you have any idea how to display a like button inside a dialog pop up using the open graph and static fbml?

    Thanks
  • Dev
    Thank you, this is really good info.
  • Really informative and great post - a lot of useful info.

    I implemented a combination of a nav bar and image gallery to a client's page to showcase their product ranges. Needless to say they were impressed with the customised approach. Thanks again!
  • kirtikumarpanchal
    This is a very nice examples.
    It is very helpfull to me.
    Thank you...
  • yangiz
    Hi Snipe! nice post, it helped me a lot :)

    Just one question, do you know how can I add Blog RSS feed on a FBML static page?
    or a twitter feed?

    In advance, thanks for your answer :)
  • Theresia
    Hi, continue from my previous question...
    I have been tried, how to make my extending tab looks fancy. So here's my trial, you can paste into FBML tab and see the result. But still i can find yet how to invisible the line when we point the cursor ( did you guys get it what i mean, sorry for not good English )

    <div style="background: #2daebf url(/images/alert-overlay.png) repeat-x; display: inline-block; font-size: 16px; ; padding: 5px 10px 6px; color: #fff; width: 100px; height:25px; text-decoration: none; font-weight: bold; line-height: 1; -moz-border-radius: 5px; -webkit-border-radius: 5px; -moz-box-shadow: 0 1px 3px #999; -webkit-box-shadow: 0 1px 3px #999; text-shadow: 0 -1px 1px #222; border-bottom: 1px solid #222; position: relative; cursor: pointer">Outles
    </div>
    <div style="background: #2daebf url(/images/alert-overlay.png) repeat-x; display: inline-block; font-size: 16px; padding: 5px 10px 6px; color: #fff; width: 100px; height:25px; text-decoration: none; font-weight: bold; line-height: 1; -moz-border-radius: 5px; -webkit-border-radius: 5px; -moz-box-shadow: 0 1px 3px #999; -webkit-box-shadow: 0 1px 3px #999; text-shadow: 0 -1px 1px #222; border-bottom: 1px solid #222; position: relative; cursor: pointer">Welcome
    </div>

    Dear snipe ,

    Can i use that code into FBML ? is it OK, i mean not against the Facebook rules ?
  • Great tutorial! Thank you for the code!

    Can you please help me get rid of the box around the "micro-site"? It automatically comes with Static FBML but I really don't want it. My images are larger than the default box.
  • Theresia
    Hi,

    Thanks for your sharing, appreciated much ^^V
    I have try for your basic step about extending tabs, but i find difficult in the step "how to make my link tabs fancy as yours"

    Would you like to share some sample, i mean the codes to make like yours, so i will understand how the css works.

    Sorry for not properly English...

    cheers,
    Tere
  • nicholashill
    I loved this info, and it's gone very far in helping! But one thing I'm struggling with is the CSS3 buttons you have there. I don't really know code, so what I've been able to do is use snippets, and edit those to eventually get what I need. However, I still don't know how to implement the CSS3 code on the site you specified into the FMBL you used. Any chance you would be willing to share the entire code you used in the first example with the CSS buttons!? PLEASE!? If I could get that, I could just upload new images and replace the img string in the CSS to match mine. Your help already has been great on this site!
  • Batolo
    This post is awsome u rock big time. Thank You very much!!!
  • Hi,
    We just loved the post! But we're not able to add tabs with CSS buttons with FBML. Please let us know how to do that.

    Thanks!
  • Holly Beach
    Great post! Very helpful but I still feel as though I'm doing something wrong with the mini-navigation tabs on the FBML tab. For some reason, I can only navigate to Nav 1 or the "home" page and whenever I click on other navs, they do not appear. Also, the content I put in other navs only appears in nav 1. I have re-checked this code over and over again but cannot figure out what I am doing wrong. I am pretty new with this (and a struggling intern) so any help would be greatly appreciated. Thanks so much!
  • You have totally made my day. Thanks for the awesome post. In building an FBML page I was able to figure out everything but this.
  • Lorenzo
    Thanks a million! Been looking for this for ages. You explain it so well too, thanks!!!!
  • This is a really great and helpful resource :)
    How can I add a mouse over to the menu buttons, I could find anything about in the FBML ?
    http://www.facebook.com/pages/FourSquare-Day-Ro...
    Thanks for your help !
  • Replied via Twitter, but for the sake of other readers - in short, you can't, using FBJS. Facebook restricts mouseover events so that the user has to click on something else before they work. See the demos here:
    http://www.facebook.com/pages/SnipeNet/11663394...

    However, if all you're looking to do is some button higlights, CSS will work for those, so you're in luck. :) Just do the mouseover effects in CSS and you're golden.
  • caparepandrew
    That is an awesome demo page but where is the source code for that stuff? I'm especially interested in the FBJS. Thanks for the great info!
  • But I had tried the same code its not working.
  • I have tried this code in my page but its not working help me please
  • Carlos Gordillo
    Hi Snipe!! A great post. I'm looking now for the vitamin water fan page, and in the ncaa hoops tab there's a great popup for the video player. http://www.facebook.com/vitaminwater?v=app_3602....

    Can you tell mes please how can i get this code, to replicate this tab for my facebook page?
  • Carlos Gordillo
    Thanks a lot for your quick answer.
  • Seekman - I am at work right now and do not have the time to look at this in detail right now. I will help when I can.
blog comments powered by Disqus