<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 
 <title>Bluish Coder: facebook</title>
 <link href="http://bluishcoder.co.nz/tag/facebook/atom.xml" rel="self"/>
 <link href="http://bluishcoder.co.nz/"/>
 <updated>2018-12-17T08:49:52+13:00</updated>
 <id>http://bluishcoder.co.nz/</id>
 <author>
   <name>Bluishcoder</name>
   <email>admin@bluishcoder.co.nz</email>
 </author>

 
 <entry>
   <title>User Authentication - OpenID and Facebook</title>
   <link href="http://bluishcoder.co.nz/2009/02/27/user-authentication-openid-and-facebook.html"/>
   <updated>2009-02-27T13:30:00+13:00</updated>
   <id>http://bluishcoder.co.nz/2009/02/27/user-authentication-openid-and-facebook</id>
   <content type="html">&lt;p&gt;I&#39;m still looking at the different options for &lt;a href=&quot;http://tinyvid.tv/&quot;&gt;tinyid&lt;/a&gt; to handle registration and authentication of users. My recent change added logging in using your Facebook account using &lt;a href=&quot;http://developers.facebook.com/connect.php&quot;&gt;Facebook Connect&lt;/a&gt;. Another option I&#39;m considering is &lt;a href=&quot;http://openid.net/&quot;&gt;OpenID&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;There&#39;s a good blog post comparing the &lt;a href=&quot;http://www.sociallipstick.com/2008/11/21/an-open-stack-glossary-for-facebook-developers/&quot;&gt;Facebook vs the OpenID stack&lt;/a&gt;. The same weblog has a post on using &lt;a href=&quot;http://www.sociallipstick.com/2009/02/04/how-to-accept-openid-in-a-popup-without-leaving-the-page/&quot;&gt;OpenID in a popup&lt;/a&gt; without leaving the page, similar to how Facebook Connect does its magic. You can see a &lt;a href=&quot;http://openid-demo.appspot.com/&quot;&gt;demo of this concept in action&lt;/a&gt;.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Testing Facebook Connect Locally</title>
   <link href="http://bluishcoder.co.nz/2009/02/26/testing-facebook-connect-locally.html"/>
   <updated>2009-02-26T11:24:00+13:00</updated>
   <id>http://bluishcoder.co.nz/2009/02/26/testing-facebook-connect-locally</id>
   <content type="html">&lt;p&gt;I&#39;ve been experimenting with integrating features from the social networking site Facebook into &lt;a href=&quot;http://www.tinyvid.tv/&quot;&gt;tinyvid&lt;/a&gt;. To do this I&#39;m using the &#39;&lt;a href=&quot;http://developers.facebook.com/connect.php&quot;&gt;Facebook Connect&lt;/a&gt;&#39; API.&lt;/p&gt;

&lt;p&gt;When you register a Facebook application you need to provide URL&#39;s to your application&#39;s site so Facebook knows where to send the user on redirects from logging in, and handle messaging between Facebook and your application.&lt;/p&gt;

&lt;p&gt;To handle the case of being able to develop and test on a local server, and deploying to the live server. This is the &#39;Callback URL&#39; setting in the application setup. This can contain an IP address and port number so for testing locally you can set it to a local IP address. For example, http://127.0.0.1:9000.&lt;/p&gt;

&lt;p&gt;Facebook doesn&#39;t try to contact this directly, it redirects the browser to it, so this works fine when testing the application locally. You can create two applications, one with the testing Callback URL, and one with the production one, and make this a parameter in your application.&lt;/p&gt;

&lt;p&gt;Another option that worked for me was to set the Callback URL to the production domain (in this case, tinyvid.tv) and locally set my hosts file so that tinyvid.tv resolved to localhost. The web server needs to run in port 80 locally for this to work.&lt;/p&gt;
</content>
 </entry>
 
 
</feed>
