<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dropthedigibomb.com &#187; Facebook</title>
	<atom:link href="http://dropthedigibomb.com/category/facebook/feed/" rel="self" type="application/rss+xml" />
	<link>http://dropthedigibomb.com</link>
	<description></description>
	<lastBuildDate>Wed, 01 Sep 2010 19:09:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>An Introduction to Facebook Page Development and FBML(Facebook Markup Language)</title>
		<link>http://dropthedigibomb.com/2009/an-introduction-to-facebook-page-development-and-fbmlfacebook-markup-language/</link>
		<comments>http://dropthedigibomb.com/2009/an-introduction-to-facebook-page-development-and-fbmlfacebook-markup-language/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 18:05:39 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Drop It]]></category>
		<category><![CDATA[FBML]]></category>
		<category><![CDATA[Facebook]]></category>

		<guid isPermaLink="false">http://dropthedigibomb.com/?p=580</guid>
		<description><![CDATA[<p><a name="top"></a>One of the great things about my job is that I get paid to spend time on Facebook. Not only am I head of Web Design/Development, which is easy considering I&#8217;m the only guy in the department, recently I have&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p><a name="top"></a>One of the great things about my job is that I get paid to spend time on Facebook. Not only am I head of Web Design/Development, which is easy considering I&#8217;m the only guy in the department, recently I have also taking on the role of being the Social Media Manager. One of the tasks I have currently taking on is building our corporate Facebook page. I&#8217;ve managed and developed a few pages and groups before for clients when I was freelance and I have attempted to build a few apps for fun, but I&#8217;m not an expert in this area. However, I have learned a few things and I would like to share them with you.</p>
<p><strong>What this post covers</strong></p>
<ul>
<li><a href="#basics">FBML &#8211; The Basics</a></li>
<li><a href="#apps">Adding Applications (For first time admins)</a></li>
<li><a href="#statfbml">Static FBML Widget</a></li>
<li><a href="#addfbml">Adding Your FBML Box or Tab to Your Page</a></li>
<li><a href="#fbmlexamples">FBML Examples</a></li>
<li><a href="#fbmlconsole">FBML Test Console</a></li>
<li><a href="#addtab">Creating Custom Tabs</a></li>
<li><a href="#deltab">Removing Tabs</a></li>
<li><a href="#examples">Facebook Page Examples</a></li>
</ul>
<p><a name="basics"></a><strong>FBML &#8211; The Basics</strong><br />
A bit of history -  First came <a href="http://developers.facebook.com/documentation.php?v=1.0&amp;doc=fql" target="_blank">FQL</a> (Facebook Query Language) which evolved into the Facebook API. Then in 2007  Facebook launched their <a href="http://developers.facebook.com/" target="_blank">Platform</a> in order to complement their API, which uses  <a href="http://developers.facebook.com/documentation.php?doc=fbml" target="_blank">FBML</a>(Facebook Markup Language), similar to HTML, it allows you to write browser interrupted code to render elements on a Facebook page or application. For example, we can embed FLV&#8217;s or SWF&#8217;s, insert images, retrieve or send data, etc., essentially creating widgets.</p>
<p>The only downside is that these widgets can only be used on Facebook!</p>
<p>Before we get into some basic code snippets, I should mention Jesse Farmer&#8217;s post <a href="http://20bits.com/articles/an-introduction-to-fbml/" target="_blank">An Introduction to FBML</a>, he does a really good job of breaking down the theory, plus he has included  some really good code examples to help you get started. You should also check out the <a href="http://wiki.developers.facebook.com/index.php/Main_Page" target="_blank">Facebook Developers Wiki</a>.</p>
<p><a href="#top">Top</a></p>
<p><a name="apps"></a><strong>Adding Applications</strong><br />
The following is mostly for new admins. If you know this stuff you can skip to the juicy content below.<strong> </strong></p>
<p>By default when you create a Facebook page there is a set of standard applications that come with it; Discussion Boards, Events, Links, Notes, Photos, and Video. However, we can add to this set by browsing some of the other applications that exist. These applications are similarity, but not exactly the same as the ones you would add on your personal profile. Typically we are looking at business applications like <a href="http://www.google.ca/url?q=http://www.facebook.com/apps/application.php%3Fid%3D45439413586&amp;ei=DPPhSqedONTBlAfr5e2KBw&amp;sa=X&amp;oi=spellmeleon_result&amp;resnum=1&amp;ct=result&amp;ved=0CAcQhgIwAA&amp;usg=AFQjCNGz2itGY2lx_rQa-8Wx_QR_T5x16w" target="_blank">RSS Grafitti</a>, <a href="http://apps.facebook.com/slideshare/" target="_blank">Slideshare</a>, <a href="http://myflickrapp.com/" target="_blank">flickr</a>, <a href="http://www.facebook.com/apps/application.php?id=2513891999" target="_blank">YouTube Box</a>, <a href="http://www.facebook.com/apps/application.php?id=5456374427" target="_blank">FlashEmbed</a>, and most importantly <a href="http://www.facebook.com/apps/application.php?id=4949752878" target="_blank">Static FBML</a>.</p>
<p>To add an application to your page click on &#8220;edit page&#8221; (link is under your profile pic when logged in) and at the very bottom there is a &#8220;More Applications&#8221; option. Click on the pencil icon and choose &#8220;Browse More&#8221;. This will take you the central Facebook apps page.</p>
<p>I recommend using the search, for example enter &#8220;Static FBML&#8221; (no quotes). Once you have found an application you want/need got to the application page and click on &#8220;add application to my page&#8221; and follow the on screen steps. Go back to you Facebook page and under &#8220;edit page&#8221; you will find your new application ready to go.</p>
<p><a href="#top">Top</a></p>
<p><a name="statfbml"></a><strong>Static FBML Box (Basically a widget)</strong><br />
For starters you will need to install the Static FBML application mentioned above. The nice thing about this widget is you can write HTML in it. So, for example if you want to load some graphics like banners, logos, etc., you can use &lt;img src&#8221;"&gt;. You can also link these images with &lt;a href=&#8221;"&gt; and so on. You cannot run JavaScript ONLY basic CSS/HTML!</p>
<p><a href="#top">Top</a></p>
<p><a name="addfbml"></a><strong>Adding Your FBML Box or Tab to Your Page</strong></p>
<ul>
<li>In &#8220;edit page&#8221; find the “Static FBML” link,  click on the pencil icon and select “edit”</li>
<li>Enter the name you want to appear in the box heading in the “Box Title” field</li>
<li>Enter the HTML content in the “FBML” field</li>
<li>When you’ve added in your HTML — click “Save Changes” and view your page to see the results.</li>
</ul>
<p>Unfortunately there is no preview option.</p>
<p>*A few tips on dimensions &#8211; If you want your FBML box to appear in the left column of your Wall, set the width to 180px and/or if you want it to appear in the tabs in the main Wall column, set the width to 600px  width or less.</p>
<p><a href="#top">Top</a></p>
<p><a name="fbmlexamples"></a><strong>FBML Examples</strong><br />
Here is an example of a page I am working on (not published yet).This  FBML box is on the left column. All I have done is called an image and linked it to a Twitter profile using standard HTML.<br />
<img class="alignnone size-full wp-image-616" title="fb_left_column" src="http://dropthedigibomb.com/wp-content/uploads/fb_left_column.jpg" alt="fb_left_column" width="213" height="233" /></p>
<p>Let&#8217;s take a look at some FBML. Here is some simple code to embed a swf in the Static FBML box (this is if you wanted to do something like the Apple Students page &#8220;On Campus&#8221; tab). To do this I used the<a href="http://wiki.developers.facebook.com/index.php/Fb:swf" target="_blank"> fb:swf</a> tag which allows me to render a SWF object. Notice I also load an image file, this is because an image will appear first, when the user clicks on the image, it turns into the SWF object. We can do the same thing with an FLV.</p>
<pre><code>&lt;fb:swf
swfbgcolor="ffffff"
imgstyle="border-width:3px; border-color:white;"
swfsrc='http://www.yourdomain.com/mymovie.swf'
imgsrc='http://www.yourdomain.com/myimage.jpg'
width=600' height='450' /&gt;
</code></pre>
<p>and to load an flv&#8230;</p>
<pre><code>&lt;fb:flv
src='http://www.mediacollege.com/video-gallery/testclips/barsandtone.flv'
width='400' height='300' title='my movie' color='#FFBB00' salign='r'
img='http://www.example.com/test.jpg' scale='showall'/&gt;
</code></pre>
<p>and just for fun, here is how you load an mp3</p>
<pre><code>&lt;fb:mp3 src="http://host.com/file.mp3" title="Song Name" artist="Song Artist" album="Album Name"/&gt;
</code></pre>
<p><a href="#top">Top</a></p>
<p><a name="fbmlconsole"></a><strong>The FBML Test Console</strong><br />
Now that we have covered some of the basics let&#8217;s take a look at the  <a href="http://developers.facebook.com/tools.php" target="_blank">Facebook Developer Tools</a>. You may not be aware that Facebook offers a bunch of free online developer tools to help you learn, test, and eventually deploy your apps. For this example I will go through some basic FBML embedded in HTML.</p>
<p>Using the  FBML Test Console we can input our code and get a Facebook Box preview. The FBML Test Console will also output the HTML source if you need to embed it elsewhere.</p>
<p>How it all works</p>
<ul>
<li>Log into to Facebook</li>
<li>Got to <a href="http://developers.facebook.com/tools.php" target="_blank">Facebook Developer Tools</a></li>
<li>Click on the FBML Test Console Tab</li>
<li>You will notice that the tool will automatically retrieve your user ID and API Key</li>
<li>Input code in the left box</li>
<li>Click on &#8220;Preview&#8221;</li>
</ul>
<p>*Notice the Position dropdown menu, here you can choose from standard Facebook layouts like feed body, request form, etc.</p>
<p><img class="alignnone size-full wp-image-625" title="fb_test_console" src="http://dropthedigibomb.com/wp-content/uploads/fb_test_console.jpg" alt="fb_test_console" width="580" height="396" /></p>
<p>In this example I am using some test code I found online(can&#8217;t remember where), to retrieve user profile pic and name. I create a basic HTML table and embed  the <a href="http://wiki.developers.facebook.com/index.php/Fb:profile-pic" target="_blank">fb:profile-pic</a> and <a href="http://wiki.developers.facebook.com/index.php/Fb:name" target="_blank">fb:name</a> tag in adjacent cells.  For the fb:name tag I use 3 attributes, useyou=false, uid=(whatever user ID you want to retrieve), and firstnameonly=true(in the last cell I change it to false). For the fb:profile-pic I use 1 attribute uid=(whatever user ID you want to retrieve).</p>
<p>Here is the code I inputted (remember to change the uid=xxxxxx to an actual user Id)</p>
<pre><code>&lt;table cellpadding=0 cellspacing=0&gt;&lt;tr&gt;&lt;td&gt;
&lt;table cellpadding=0 cellspacing=0&gt;
&lt;tr&gt;&lt;td&gt;
&lt;fb:profile-pic uid=xxxxxx&gt;&lt;/fb:profile-pic&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;
&lt;fb:name useyou=false uid=xxxxxx firstnameonly=true&gt;&lt;/fb:name&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/td&gt;&lt;td&gt;
&lt;table cellpadding=0 cellspacing=0&gt;&lt;tr&gt;&lt;td&gt;
&lt;fb:profile-pic uid=xxxxxx&gt;&lt;/fb:profile-pic&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;
&lt;fb:name useyou=false uid=xxxxxx firstnameonly=true&gt;&lt;/fb:name&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/td&gt;&lt;td&gt;
&lt;table cellpadding=0 cellspacing=0&gt;&lt;tr&gt;&lt;td&gt;
&lt;fb:profile-pic uid=xxxxxx&gt;&lt;/fb:profile-pic&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;
&lt;fb:name useyou=false uid=xxxxxx firstnameonly=true&gt;&lt;/fb:name&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
</code></pre>
<p>This is what it outputs<br />
<img class="alignnone size-full wp-image-650" title="fb_test_console_preview" src="http://dropthedigibomb.com/wp-content/uploads/fb_test_console_preview.jpg" alt="fb_test_console_preview" width="480" height="167" /></p>
<p>Once you have a basic understanding of FBML you will find this tool very useful for testing code and playing around. You may also want to check out this great post at devtacular on <a href="http://devtacular.com/articles/bkonrad/how-to-style-an-application-like-facebook/" target="_blank">How to Style an Application Like Facebook</a> this post includes a complete Facebook Component Stylesheet!</p>
<p><a href="#top">Top</a></p>
<p><a name="addtab"></a><strong>Creating Custom Tabs</strong><br />
It is important to create custom tabs that represent your page/brand beyond the basic Wall, Info, Photos, Events, etc.  Most successful pages use custom tabs to sell their products or services, watch demos and presentations, enter contests and so on. A good example  is the <a href="http://www.facebook.com/applestudents" target="_blank">Apple Students Page</a>, they have a tab called On Campus which launches a really slick Flash app with videos, a google map mashup, and some ads.<br />
<a href="http://www.facebook.com/applestudents" target="_blank"><img class="alignnone size-full wp-image-602" title="fb_applestudents" src="http://dropthedigibomb.com/wp-content/uploads/fb_applestudents.jpg" alt="fb_applestudents" width="480" height="610" /></a></p>
<p>The other bonus of custom tabs is the ability to set it as the default landing page. In your page settings you can choose which tab is set as the default, most people just use the Wall. A good example is the <a href="http://www.facebook.com/nokia" target="_blank">Nokia Page</a>, which defaults to Nokia Twist-USA.<br />
<a href="http://www.facebook.com/nokia" target="_blank"><img class="alignnone size-full wp-image-603" title="fb_nokia" src="http://dropthedigibomb.com/wp-content/uploads/fb_nokia.jpg" alt="fb_nokia" width="480" height="404" /></a></p>
<p>How do I create a custom tab? Easy! First you need to make sure you have added the <a href="http://www.facebook.com/apps/application.php?id=4949752878" target="_blank">FBML Application</a> to your page. Without it you can&#8217;t create any custom widgets to display as tabs(you can also use these steps to add any of the default applications as a tab).</p>
<p>Click on &#8220;edit page&#8221; (link is under your profile pic when logged in) and under Applications click on the pencil icon on the top right corner of the application you want to add as a tab.<br />
<img class="alignnone size-full wp-image-605" title="fb_app_settings" src="http://dropthedigibomb.com/wp-content/uploads/fb_app_settings.jpg" alt="fb_app_settings" width="480" height="96" /></p>
<p>Click on &#8220;Applications Settings&#8221;.<br />
<img class="alignnone size-full wp-image-592" title="fb_fbml_settings" src="http://dropthedigibomb.com/wp-content/uploads/fb_fbml_settings.jpg" alt="fb_fbml_settings" width="479" height="228" /></p>
<p>You will be giving 2 options, add/remove from Boxes and add/remove from Tab. Click &#8220;add&#8221;. Now go back to your page and refresh and you new tab should be there.</p>
<p><a href="#top">Top</a></p>
<p><a name="deltab"></a><strong>Removing Tabs</strong><br />
Removing tabs take only a few seconds.</p>
<p>Click on any of your tabs. When that page loads you will notice the tab is white and a pencil icon appears next to the tab name. Click on the pencil icon.<br />
<img class="alignnone size-full wp-image-594" title="fb_to_delete_tab" src="http://dropthedigibomb.com/wp-content/uploads/fb_to_delete_tab.jpg" alt="fb_to_delete_tab" width="409" height="65" /></p>
<p>Click on &#8220;Delete Tab&#8221;. Told you it was easy!</p>
<p>The only tabs you cannot delete are Wall and Info.</p>
<p>*A quick tip about the Boxes tab &#8211; You can remove the boxes but not in the same way as others. To remove the boxes tab first you need to click on Boxes. When the page loads remove each box that is under this tab (the same steps as above). Once there are no boxes left under the Boxes tab go back to your wall. The Boxes tab should be gone, if not refresh a few times. Essentially this tab only exists if there is something in it!</p>
<p><a href="#top">Top</a></p>
<p><a name="examples"></a><strong>Here&#8217;s a list of some really nice examples</strong><br />
<a href="http://www.facebook.com/officelive" target="_blank">http://www.facebook.com/officelive</a><br />
<a href="http://www.facebook.com/applestudents" target="_blank">http://www.facebook.com/applestudents</a><br />
<a href="http://www.facebook.com/livescribe" target="_blank">http://www.facebook.com/livescribe</a><br />
<a href="http://www.facebook.com/nokia" target="_blank">http://www.facebook.com/nokia</a><br />
<a href="http://www.facebook.com/Starbucks" target="_blank">http://www.facebook.com/Starbucks</a><br />
<a href="http://www.facebook.com/adidasoriginals" target="_blank">http://www.facebook.com/adidasoriginals</a><br />
<a href="http://www.facebook.com/Paramount" target="_blank">http://www.facebook.com/Paramount</a></p>
<p><strong> </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://dropthedigibomb.com/2009/an-introduction-to-facebook-page-development-and-fbmlfacebook-markup-language/feed/</wfw:commentRss>
		<slash:comments>49</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.006 seconds -->
