<?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>{5} Setfive - Talking to the World &#187; facebook connect</title>
	<atom:link href="http://shout.setfive.com/tag/facebook-connect/feed/" rel="self" type="application/rss+xml" />
	<link>http://shout.setfive.com</link>
	<description></description>
	<lastBuildDate>Fri, 03 Sep 2010 18:48:52 +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>FOSS Saturday: sfFbConnectGuardPlugin &#8211; sfGuard meets FB Connect</title>
		<link>http://shout.setfive.com/2009/09/12/foss-saturday-sffbconnectguardplugin/</link>
		<comments>http://shout.setfive.com/2009/09/12/foss-saturday-sffbconnectguardplugin/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 22:44:17 +0000</pubDate>
		<dc:creator>Ashish Datta</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[facebook connect]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://shout.setfive.com/?p=275</guid>
		<description><![CDATA[I was slaving over a hot keyboard all Friday! But at last it is done &#8211; FBConnect for sfGuard. Get it here http://www.symfony-project.org/plugins/sfFbConnectGuardPlugin A detailed explanation of how to install it and use it is on the Symfony site. Anyway, the plugin basically just introduces a new table to keep track of Facebook IDs sfGuardUserIds [...]]]></description>
			<content:encoded><![CDATA[<p>I was slaving over a hot keyboard all Friday! </p>
<p>But at last it is done &#8211; FBConnect for sfGuard.</p>
<p>Get it here <a href="http://www.symfony-project.org/plugins/sfFbConnectGuardPlugin" target="_blank">http://www.symfony-project.org/plugins/sfFbConnectGuardPlugin</a></p>
<p>A detailed explanation of how to install it and use it is on the Symfony site. </p>
<p>Anyway, the plugin basically just introduces a new table to keep track of Facebook IDs <---> sfGuardUserIds</p>
<p>Here&#8217;s a fun nugget. One of the problems with using FB Connect is that you can&#8217;t mug a user&#8217;s email address from Facebook. Obviously this is a smart move on Facebook&#8217;s part but it makes life hard for my Nigerian spammer friends. If you want to snag a user&#8217;s email address (or anything else for that matter) while still using Facebook Connect here&#8217;s a sketch of how to do it.</p>
<p>Everything is the same except you can&#8217;t use Facebook&#8217;s FBML to render the FB Connect button. What you want to do instead is trigger the &#8220;connect&#8221; event by hand.  Here is basically how we do it:</p>
<ol>
<li>The user requests to sign up.</li>
<li>We pop up a Lightbox using <a href="http://jquery.com/demo/thickbox/" target="_blank">Thickbox</a></li>
<li>We ask the user for their email address and verify that is valid and unique via AJAX in the background.</li>
<li>The validation routing sets an attribute on the user using setAttribute() that contains the entered email address.</li>
<li>We close the Lightbox and initiate a Facebook Connect request with <a target="_blank" href="http://wiki.developers.facebook.com/index.php/JS_API_M_FB.Connect.RequireSession">FB.Connect.requireSession</a></li>
<li>In our createFbUser() method we get the attribute back and save it with the new user</li>
</ol>
<p>Bam. Got the user&#8217;s email address and logged them in via FB Connect. </p>
]]></content:encoded>
			<wfw:commentRss>http://shout.setfive.com/2009/09/12/foss-saturday-sffbconnectguardplugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
