Facebook Pages: FBML Examples (Part 2)
Hi all. Here are some more examples of FBML Boxes for you. In Part 1, I gave examples mostly for a short paragraph of text or an image. Now in Part 2, I’m putting in a few examples for boxes for stuff like news updates or text links.
By the way, I know that this probably isn’t the best way for me to display html codes, but I will be getting my blog hosted soon, so hopefully things will be looking better then. Here we go:
1) Box with Links and Short Excerpts
The blue box on the right is the original. I took the code from Facebook’s Developer Wiki. Just wanted to show you that you can take something as boring as that menu, change it up a bit and make it interesting and ‘customized’. Here’s the code I used:
——————————————————————-
<h3>YOUR BOX TITLE HERE</h3>
——————————————————————-
2) Blog-style News Box
I pieced this one together with bits of codes here and there from the Facebook Developer’s Wiki as well. I don’t think this one looks as good as the first box(it hardly does), but just to show you that it can be done, even by a noob like me. So get creative!
——————————————————————-
<center>
<style type=”text/css”>
.forum table { width:600px; }
.forum table tr { background-image:color:#FFFFFF; }
.forum table tr.odd { background-color:#fff9d7; }
.forum table td { padding:3px 3px 3px 9px; }
.forum table .upd_on {
color: gray; margin: 0 0 0px 5px;
font-size:10px; font-weight:normal;
padding:0; text-align: right;
}
.forum table h4 {
border-bottom:1px solid #CCCCCC;
font-size:13px; font-weight:bold;
color: #999999; padding-top: 15px;
display:block; margin:0;
}
</style>
<div class=”forum”>
<table cellspacing=”0″>
<tr class=”odd”>
<td><h4>Whatever Title You Want To Put Here</h4>
<p class=”upd_on”>Updated on 1 June, 2008</p>
<center><a href=”YOUR IMAGE LINK HERE” target=”_blank” /><img src=”YOUR IMAGE SOURCE HERE” ” border=”0″ alt=”" ></a></center>
<p>Your Totally Awesome Content Here.</p> </td>
——————————————————————-
3) FB-Style FBML Box

Just a simple box here. I am clearly running out of ideas..
——————————————————————-
<style type=”text/css”>
table td { width:360px;height:360px;padding:10px;text-size:11px; }
/* Facebook Box Header */
td h2
{
background-color:#D8DFEA; border-top:1px solid #3B5998;
color:#3B5998; font-size:11px;
padding:3px 6px; margin:0;
font-weight:bold; width:360px
}
.menu ul {
color:#3B5998; padding:0 10px 5px;
}
.menu li {
font-weight:bold; list-style-color:#999999; list-style-position:inside; list-style-type:square; padding:0 0 5px;
}
.menu .descrip {
color:#444444; font-weight:normal; padding:5px 0 0 15px;
}
</style>
<table cellspacing=”0″>
<td> <h2>News from Newspapers</h2><ul><li>
<a href=”#”><b>It’s Jenny Duncalf for the final showdown</b></a>
<div class=”descrip”><img src =”http://i656.photobucket.com/albums/uu281/sqstars/Final_Squash_Star_Logo.png”
align =”right” width=”80″ height=”135″>It was a cool evening today on the glass court but both Jenny and I are fired up to get it going in this final.The ball was dying at the back corners a lot more today from my drives that came in well in the first game…</div>
</li> </ul></td>
——————————————————————-
So that’s three examples of fbml boxes for today. By the way, you can learn more about how to style your fbml like Facebook here.
Next up, I’ll be writing about real, practical ways to use your facebook page / public profile for promotion, as well as a few tricks to further customize your page.
As always, if you have any questions or suggestions, just drop me a line on my Facebook Page. Thanks for reading.
Thanks for your tips on FBML, extremely helpful. I am wondering if it is possible to put a video in FBML and put it on the left side of the main page? This way it will be permanently there so people to watch. Any help would be appreciated.
Thanks!
Hi Kelsey,
I have not tried putting a video in FBML myself, but here’s the code that the FB Developers have provided:
I don’t seem to be able to post the code in my comments. But here’s the link http://wiki.developers.facebook.com/index.php/Fb:swf – scroll down for Examples
You could also use the Extended Info and My Stuff apps:
http://www.facebook.com/apps/application.php?id=2374336051&v=info&viewas=629152408
http://www.facebook.com/apps/application.php?sid=a6a2356657c9c7512c52f3dda265c94f&id=2352149512&ref=search
I’ll try to work on putting a video in fbml this weekend… will probably write a post on this as well.
Hope it helps. Thanks.
Done!
http://lorrainesiew.wordpress.com/2009/07/15/facebook-pages-embed-flash-youtube-videos-in-fbml/
Glad I found your blog. I don’t know if I missed this in your posts, but do you know how to add FBML to the left side column of a fan page? ex. facebook.com/nbc
Hi Jesse
Go to your box ‘edit box’ – ‘move to wall tab’
http://lorrainesiew.wordpress.com/2009/07/04/facebook-pages-introduction-to-fbml/
Thanks! It was the boxes part that was throwing me off.
[...] Create a FBML links Box [...]