<?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>Building Browsergames &#187; facebook</title>
	<atom:link href="http://buildingbrowsergames.com/tag/facebook/feed/" rel="self" type="application/rss+xml" />
	<link>http://buildingbrowsergames.com</link>
	<description>Ever wanted to build a browsergame?</description>
	<lastBuildDate>Mon, 29 Mar 2010 14:00:39 +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>Your PBBG on Facebook</title>
		<link>http://buildingbrowsergames.com/2008/10/09/your-pbbg-on-facebook/</link>
		<comments>http://buildingbrowsergames.com/2008/10/09/your-pbbg-on-facebook/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 14:00:30 +0000</pubDate>
		<dc:creator>Daedeloth</dc:creator>
				<category><![CDATA[marketing]]></category>
		<category><![CDATA[publicrelations]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[browser games hub]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://buildingbrowsergames.com/?p=461</guid>
		<description><![CDATA[Facebook is a great platform for game developers. The ease of using your Facebook account on various 3rd party applications allows users to start playing your game right away, without worrying about registration or account activation.
Porting your game to Facebook, however, is not an easy job to do, especially if your game is deployed on [...]]]></description>
			<content:encoded><![CDATA[<p>Facebook is a great platform for game developers. The ease of using your Facebook account on various 3rd party applications allows users to start playing your game right away, without worrying about registration or account activation.</p>
<p>Porting your game to Facebook, however, is not an easy job to do, especially if your game is deployed on multiple servers. </p>
<p><a href="http://apps.facebook.com/browser-games">Browser Based Games</a> found a solution for this. By using <a href="http://www.browser-games-hub.org/">Browser Games Hub</a> data and an <a href="http://www.openid.net/">OpenID</a> provider, they provide players an easy way to play browser games with their Facebook or OpenSocial capable (Orkut, MySpace, Netlog, &#8230;) account.</p>
<h3>OpenID?</h3>
<p>This application requires <a href="http://www.openid.net/">OpenID</a> support. OpenID is an open source system that enables users to use one identity across the web. Using one OpenID you can login to hundreds of websites without remembering all those passwords and logins.</p>
<p>Depending on how your game is written, OpenID is fairly simple to install. There are <a href="http://wiki.openid.net/Libraries">a lot of libraries</a> in multiple languages and a rather extended <em>quick guide</em> can be found <a href="http://www.plaxo.com/api/openid_recipe">here</a>.</p>
<p>On a sidenote, if your game supports OpenID, it will also support <a href="http://www.galaxy-news.net/content/284_galaxynews_id_one_account_all_the_fun.html">GalaxyNews ID</a>, which is based on the OpenID technology.</p>
<p><em>Note: in order to add your game to the BBG application, your login script must receive the openid_url in GET, not in POST.</em></p>
<p><strong>Adding your game</strong><br />
Next issue on the list is adding your game to BBG application. Since it uses the information provided by <a href="http://www.browser-games-hub.org/">Browser Games Hub</a>, you will have to add your game to the hub (see <a href="http://buildingbrowsergames.com/2008/10/05/browser-games-hubbrowser-games-hub/">previous article</a>). The most important section in your XML will be the <em>servers</em> element. If this section is invalid, your game will not appear in the application.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;browsergameshub</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;0.1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servers<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;server</span> <span style="color: #000066;">group</span>=<span style="color: #ff0000;">&quot;Pool A&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Server ID<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Server 2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>0.123<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;game_url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>http://link-to-your-game-server/<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/game_url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;openid_url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>http://link-to-your-game-server/openid.php?openid_url=%s<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/openid_url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;players<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>2504<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/players<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;status<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>open<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/status<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;descriptions<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;description</span> <span style="color: #000066;">lang</span>=<span style="color: #ff0000;">&quot;en&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>speed 1x<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/descriptions<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/server<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servers<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/browsergameshub<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>Let&#8217;s take a closer look at the element <em>openid_url</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;openid_url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>http://link-to-your-game-server/openid.php?openid_url=%s<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/openid_url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>This element should contain a direct link to the action of your OpenID login form. The GET variable declared in <em>openid_url=%s</em> will be populated with an OpenID. The Browser Games Hub will throw an error if it&#8217;s not working.</p>
<h3>And next?</h3>
<p>That&#8217;s it, really. Your game should now appear in the Hub with a lightning symbol, showing that your game supports OpenID. The application is only updated a few times a day, so it might take a while before all those facebook users start joining your game <img src='http://www.buildingbrowsergames.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://buildingbrowsergames.com/2008/10/09/your-pbbg-on-facebook/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

