<?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>sundh.com &#187; Facebook Connect</title>
	<atom:link href="http://www.sundh.com/blog/tag/facebook-connect/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sundh.com/blog</link>
	<description>Technology / Wood / Electronics</description>
	<lastBuildDate>Tue, 25 May 2010 11:13:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Facebook Connect: Only for grown ups</title>
		<link>http://www.sundh.com/blog/2010/02/facebook-connect-only-for-grown-ups/</link>
		<comments>http://www.sundh.com/blog/2010/02/facebook-connect-only-for-grown-ups/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 12:03:45 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Facebook Connect]]></category>
		<category><![CDATA[social networks]]></category>

		<guid isPermaLink="false">http://www.sundh.com/blog/?p=98</guid>
		<description><![CDATA[In some Facebook Connect apps you might want to target an older audience. Any Facebook user is required to fill in their date of birth so the birthday field of the profile can be a way to check that your user has the appriopriate age for your application. This can be done by checking the [...]]]></description>
			<content:encoded><![CDATA[<p>In some Facebook Connect apps you might want to target an older audience. Any Facebook user is required to fill in their date of birth so the birthday field of the profile can be a way to check that your user has the appriopriate age for your application. This can be done by checking the birthday date of the user (birthday_date) using  the function</p>
<div class="codesnip-container" >users_getInfo($uid, &#8216;birthday_date&#8217;).</div>
<p><img class="size-medium wp-image-99 alignleft" title="birhtdate" src="http://www.sundh.com/blog/wp-content/uploads/2010/02/birhtdate-300x109.jpg" alt="birhtdate" width="300" height="109" /></p>
<p>Important to remember though is that if the Facebook user has chosen not to show the birth year, this will not be available for the Facebook Connect application. To determine that the Facebook user has the appropriate age her settings on Facebook must look as follows:</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.sundh.com/blog/2010/02/facebook-connect-only-for-grown-ups/" target="_blank"><img src="http://www.sundh.com/blog/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.sundh.com/blog/2010/02/facebook-connect-only-for-grown-ups/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.sundh.com/blog/2010/02/facebook-connect-only-for-grown-ups/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Facebook Connect: No server-side needed</title>
		<link>http://www.sundh.com/blog/2010/01/facebook-connect-no-server-side-needed/</link>
		<comments>http://www.sundh.com/blog/2010/01/facebook-connect-no-server-side-needed/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 16:27:44 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Facebook Connect]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.sundh.com/blog/?p=56</guid>
		<description><![CDATA[With the Facebook Connect API comes javascript functionality. This means no server-side scripting needed. You can create your application on Facebook and connect to it from your website thought javascript. Use the API Key and Secret Key to connect to you application. Make sure your callback URL is set on Facebook to be the URL [...]]]></description>
			<content:encoded><![CDATA[<p>With the Facebook Connect API comes javascript functionality. This means no server-side scripting needed. You can <a href="http://www.facebook.com/developers/createapp.php">create your application on Facebook</a> and connect to it from your website thought javascript. Use the API Key and Secret Key to connect to you application. Make sure your callback URL is set on Facebook to be the URL of the page you are connecting from.</p>
<p>Create your customized Facebook Connect login button through this <a href="http://developers.facebook.com/tools.php?connect_wizard">wizard</a>. Paste in the code into your site.</p>
<p><strong>Enabling calls to the javascript API on Facebook:</strong></p>
<div class="codesnip-container" >&lt;script src=&#8221;http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/sv_SE&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;</div>
<p><strong>Generating the login button on your site:</strong></p>
<div class="codesnip-container" >&lt;fb:login-button v=&#8221;2&#8243; size=&#8221;medium&#8221; onlogin=&#8221;window.location.reload(true);&#8221;&gt;Log in to Facebook Connect&lt;/fb:login-button&gt;</div>
<p>The Facebook Connect login will appear in a pop-up window. When successfully logged in, the window closes and your main page reloads.</p>
<p><strong>The output</strong><br />
In the Javascript function FB.ensureInit you can then put in your API calls and generate your HTML from that. Below is an example of showing selected information from a user&#8217;s profile.</p>
<div class="codesnip-container" >&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
var widget_div = document.getElementById(&#8221;profile_pics&#8221;);<br />
FB.ensureInit(function () {<br />
FB.Facebook.get_sessionState().waitUntilReady(function() {</div>
<div class="codesnip-container" >&nbsp;&nbsp;var session = FB.Facebook.apiClient.get_session();</div>
<div class="codesnip-container" >&nbsp;&nbsp;FB.Facebook.apiClient.users_getInfo([session.uid], ["about_me","books","interests","movies","music",<br />
"religion","tv","quotes","education_history","political","sex","meeting_for"],</div>
<div class="codesnip-container" >function(result) {<br />
&nbsp;&nbsp;var markup = &#8220;&#8221;;<br />
&nbsp;&nbsp;for(var o in result[0]) {<br />
&nbsp;&nbsp;markup += &#8220;&lt;br&gt;&#8221; + o + &#8221; : &#8221; + result[0][o];<br />
}<br />
widget_div.innerHTML = markup;<br />
FB.XFBML.Host.parseDomElement(widget_div);<br />
});<br />
});<br />
});<br />
&lt;/script&gt;</div>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.sundh.com/blog/2010/01/facebook-connect-no-server-side-needed/" target="_blank"><img src="http://www.sundh.com/blog/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.sundh.com/blog/2010/01/facebook-connect-no-server-side-needed/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.sundh.com/blog/2010/01/facebook-connect-no-server-side-needed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Add Facebook Connect to your blog comments</title>
		<link>http://www.sundh.com/blog/2009/12/add-facebook-connect-to-your-blog-in-8-minutes/</link>
		<comments>http://www.sundh.com/blog/2009/12/add-facebook-connect-to-your-blog-in-8-minutes/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 10:09:08 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Facebook Connect]]></category>
		<category><![CDATA[social networks]]></category>

		<guid isPermaLink="false">http://www.sundh.com/blog/?p=44</guid>
		<description><![CDATA[This neat video explains how you can add Facebook Connect to your blog and let users add comments by logging into Facebook Connect! No server-side scripting needed!

Share on Facebook]]></description>
			<content:encoded><![CDATA[<p>This neat video explains how you can add Facebook Connect to your blog and let users add comments by logging into Facebook Connect! No server-side scripting needed!<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="576" height="324" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.facebook.com/v/630563174283" /><param name="wmode" value="opaque" /><embed type="application/x-shockwave-flash" width="576" height="324" src="http://www.facebook.com/v/630563174283" wmode="opaque" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.sundh.com/blog/2009/12/add-facebook-connect-to-your-blog-in-8-minutes/" target="_blank"><img src="http://www.sundh.com/blog/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.sundh.com/blog/2009/12/add-facebook-connect-to-your-blog-in-8-minutes/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.sundh.com/blog/2009/12/add-facebook-connect-to-your-blog-in-8-minutes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
