<?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>.:Neil Smith Designs:.  Web Design and Development &#187; Attract Visitors</title>
	<atom:link href="http://www.neilsmithdesigns.co.uk/blog/tag/attract-visitors/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.neilsmithdesigns.co.uk/blog</link>
	<description>Web development and design.  Professional design for corperate websites.  Every day solutions for all websites.</description>
	<lastBuildDate>Tue, 04 Oct 2011 19:01:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Attract more visitors by developing a facebook application</title>
		<link>http://www.neilsmithdesigns.co.uk/blog/2008/12/11/</link>
		<comments>http://www.neilsmithdesigns.co.uk/blog/2008/12/11/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 22:12:52 +0000</pubDate>
		<dc:creator>nessasmith</dc:creator>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[Attract Visitors]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Facebook Markup Language]]></category>
		<category><![CDATA[FBML]]></category>
		<category><![CDATA[Social Application]]></category>
		<category><![CDATA[Viral Marketing]]></category>
		<category><![CDATA[Widgets]]></category>
		<category><![CDATA[XML Error]]></category>

		<guid isPermaLink="false">http://www.neilsmithdesigns.co.uk/blog/?p=11</guid>
		<description><![CDATA[Why are you here?
What, out of the millions of web pages on this ever growing beast that is the internet made you click on a link or type in an address to arrive at this page? It may be coincidence and you were searching for something totally different, in which case you are unlikely to [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_10" class="wp-caption alignleft" style="width: 157px"><a href="http://www.neilsmithdesigns.co.uk/blog/wp-content/uploads/2008/12/facebook2.gif"><img class="size-medium wp-image-10" title="facebook2" src="http://www.neilsmithdesigns.co.uk/blog/wp-content/uploads/2008/12/facebook2.gif" alt="Any friends?" width="147" height="57" /></a><p class="wp-caption-text">Any friends?</p></div>
<p><span style="font-size: 100%;"><span style="font-size: 100%; font-family: arial;">Why are you here?<br />
What, out of the millions of web pages on this ever growing beast that is the internet made you click on a link or type in an address to arrive at this page?</span><span style="font-size: 100%;"> </span><span style="font-size: 100%; font-family: arial;">It may be coincidence and you were searching for something totally different, in which case you are unlikely to have made it to this point in the post.<br />
Hopefully this is not the case. Hopefully you are here because you want to read about why I have developed a facebook application, how I went about doing so and what lessons I learnt that I can pass on to you.</span><span style="font-size: 100%;"> </span></span></p>
<p><span style="font-weight: bold;">&gt;&gt; So why did I develop a facebook app?</span><span style="font-weight: bold; font-size: 100%;"> </span></p>
<p><span style="font-size: 100%; font-family: arial;">For the very point I was making at the start o</span><span style="font-size: 100%;"><span style="font-family: arial;">f this post. To attract more visitors to this site. To gain more exposure and in turn encourage more users to sign up to this blog. In my view there is no point blogging to an audience of 1.</span></span></p>
<p>There are over 35.3 million Weblogs on the internet, so to make yours the one that a visitor reads means you have to do more that just post your articles and thin<span style="font-size: 100%;"><span style="font-family: arial;">k the magic of the internet will do the rest.</span> <span style="font-family: arial;"><br />
Facebook is the web app of the moment. It comes and goes in phases, first it was Myspace then Bebo now Facebook. Surfers are fickle creatures that will set up a new profile on the next big social networking site at the drop of a hat, leaving their existing profiles frozen at a perticular point in their lives&#8230; sad, but true.</span><br />
</span></p>
<p>But facebook is where it is at the moment and one of the main reasons behind this is because they<span style="font-size: 100%;"><span style="font-family: arial;"> have given the</span></span><span style="font-size: 100%;"><span style="font-family: arial;"> power of evolving this network socialising tool to the community that use it.<br />
They&#8217;ve</span></span><span style="font-size: 100%;"><a style="font-family: arial;" href="http://bp1.blogger.com/_HfzAjvU3iiI/R6Sk729sm6I/AAAAAAAAADE/ET-6bQzT_T4/s1600-h/facebook_apps.gif" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5162432421146958754" style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://bp1.blogger.com/_HfzAjvU3iiI/R6Sk729sm6I/AAAAAAAAADE/ET-6bQzT_T4/s200/facebook_apps.gif" border="0" alt="" /></a></span><span style="font-size: 100%;"><span style="font-family: arial;"> done this by allowin</span></span><span style="font-size: 100%;"><span style="font-family: arial;">g developers to build &#8220;widgets&#8221; that can be installed in users profiles and these</span></span><span style="font-size: 100%;"><span style="font-family: arial;"> &#8220;widgets&#8221; can be anything the developer can dream up.</span></span></p>
<p><span style="font-family: arial;">It obviously hasn&#8217;t </span><span style="font-size: 100%;"><span style="font-family: arial;">taken long for developers to realise that through these widgets they can reach a massive audience faster than ever before possible. Word of mouth is the most powerful viral marketing tool available and this platform gives a perfect way of starting that marketing.</span> <span style="font-family: arial;">So this is the reason I set about developing a facebook app, I wanted more visitors to this</span></span><span style="font-size: 100%;"><span style="font-family: arial;"> website and hopefully, as you are reading this&#8230; that&#8217;s already started to work!</span></span></p>
<p><span style="font-weight: bold; font-family: arial;">&gt;&gt; How did I build the facebook app?</span></p>
<p>First of all I needed a<span style="font-size: 100%;"><span style="font-family: arial;">n idea for a facebook widget. If you&#8217;re a user of the site, I&#8217;m sure you will have noticed there is an absolute deluge of widgets that let you see how you compare to your friends, how popular you are or even what object such as car, vegetable or animal you are like. These are all good fun and have their place.<br />
But I wanted to create something that </span></span><span style="font-size: 100%;"><span style="font-family: arial;">users could get involved with and hopefully get a little more out of using.</span></span></p>
<p><span style="font-family: arial;">I looked at my interests and the fact that I was trying to come up with an idea to engage more people with my website. One of my favourite shows on the box is Dragons Den, so I wondered if I could develop an app based around this show.</span> <span style="font-family: arial;">&#8220;Pitch to the Dragons&#8221; is what I came up with. Where facebook users can pitch their idea to their friends for them to comment on and rate.</span></p>
<p><a href="http://bp3.blogger.com/_HfzAjvU3iiI/R6SnVW9sm9I/AAAAAAAAADc/SI66JaSJw0k/s1600-h/pitch_header.gif" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5162435058256878546" style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp3.blogger.com/_HfzAjvU3iiI/R6SnVW9sm9I/AAAAAAAAADc/SI66JaSJw0k/s320/pitch_header.gif" border="0" alt="" /></a><span style="font-size: 100%;"><br />
</span><span style="font-size: 100%;"><span style="font-family: arial;">Fortunatly I have a background in php, which is one of the primary languages you can use to develop these widgets. The other language you need to become familiar with is FBML (Facebook Markup Language). This is where I really have to take my hat off to the developers of facebook. They have created an evolved subset of HTML which allows you to hook into the users profiles, mini feeds etc&#8230; and display elements</span></span><span style="font-size: 100%;"><span style="font-family: arial;"> in a facebook style in-keeping with the site.</span></span></p>
<p><span style="font-family: arial;">I&#8217;m not going to go through the coding of my application, but I will say that with a sound knowledge of php it took me approx 18hrs to develop. Obviously this wasn&#8217;t continuous I was doing it in my spare time.<br />
That said, I am now familiar with FBML and the anatomy of a facebook app, so the next application should be a lot quicker (depending on complexity!).</span></p>
<p><span style="font-weight: bold;">&gt;&gt; What did I learn that I can pass on to you?</span><span style="font-weight: bold;"> </span></p>
<p>First of all that you need to download the PHP (4 and 5) Client Library. This includes many facebook functions that you will need to develop you app. <span style="font-family: arial;">One lesson here was to make sure you know the version of php your using and therefore use the correct library.</span></p>
<p>Once you&#8217;ve uploaded the correct library, you may come across this error when trying to access it&#8230;<br />
<span style="font-weight: bold;">Fatal error: Failed opening required &#8216;IsterXmlExpatNonValid.php&#8217;,</span> this is because you also need an XML library that can be found <a style="font-family: arial;" href="http://sourceforge.net/project/downloading.php?groupname=ister4framework&amp;filename=simplexml44-0_4_4.tar.gz&amp;use_mirror=ovh" target="_blank">here</a> <span style="font-family: arial;">Make sure you reference it correctly and the error should disappear.</span></p>
<p>The second lesson I learnt was using the Default FBML which is in your applications &#8220;Edit Settings&#8221; page.<br />
I was trying for ages to get the actions I wanted in the users profile into this box. Unfortunately its rather restricted and you can better configure what the user sees in their box through the set up when they install your app.</p>
<p>You really need to setFBML for the users profile. To do this in php build what you want the user to see in their profile into a variable then call your facebook api client profile_setFBML function, e.g. $facebook-&gt;api_client-&gt;profile_setFBML($markup); //where $markup is what the user will see in their profile.</p>
<p><span style="font-family: arial;">Aside from these two issues, everything really did run smoothly. My only other suggestion would be to use the FBML code as much as possible to make your app look like a facebook app.</span></p>
<p>So, has it worked? <span style="font-family: arial;">Only time will tell. I will post a follow up to let you know the difference it has made&#8230; At the moment I&#8217;m just hoping the next killer social networking application isn&#8217;t going to spring up tomorrow!</span></p>
<script type="text/javascript" class="owbutton" src="http://onlywire.com/btn/button_61110" title="Attract more visitors by developing a facebook application" url="http://www.neilsmithdesigns.co.uk/blog/2008/12/11/"></script>]]></content:encoded>
			<wfw:commentRss>http://www.neilsmithdesigns.co.uk/blog/2008/12/11/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

