<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'Integrate into Existing Application' | Pragmatic Forums</title>
    <link>http://fora.pragprog.com/forums/59/topics/378</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>Integrate into Existing Application posted by Gregory Bluvshteyn @ Thu, 01 May 2008 04:35:51 -0000</title>
      <description>&lt;p&gt;Hi Mike,&lt;/p&gt;


	&lt;p&gt;Thanks for the answer, it sort of does makes sense and everything which is genius is simple. I will added it to the app facebook&amp;#8217;s  app installation process.&lt;/p&gt;


	&lt;p&gt;Sincerely:&lt;/p&gt;


	&lt;p&gt;Gregory Bluvshteyn&lt;/p&gt;</description>
      <pubDate>Thu, 01 May 2008 04:35:51 -0000</pubDate>
      <guid isPermaLink="false">fora.pragprog.com:59:378:2699</guid>
      <author>Gregory Bluvshteyn</author>
      <link>http://fora.pragprog.com/forums/59/topics/378</link>
    </item>
    <item>
      <title>Integrate into Existing Application posted by Mike Mangino @ Wed, 30 Apr 2008 19:49:16 -0000</title>
      <description>&lt;p&gt;Why not ask for username and password and verify the account by logging them in? If they can authenticate, then link the accounts?&lt;/p&gt;


	&lt;p&gt;Mike&lt;/p&gt;</description>
      <pubDate>Wed, 30 Apr 2008 19:49:16 -0000</pubDate>
      <guid isPermaLink="false">fora.pragprog.com:59:378:2694</guid>
      <author>Mike Mangino</author>
      <link>http://fora.pragprog.com/forums/59/topics/378</link>
    </item>
    <item>
      <title>Integrate into Existing Application posted by Gregory Bluvshteyn @ Wed, 30 Apr 2008 16:02:17 -0000</title>
      <description>&lt;p&gt;Hi all,&lt;/p&gt;


	&lt;p&gt;I also have existing application with internal authentication, and we need to be able to import/install user&amp;#8217;s widget ( combination of various choices that user selected during regestration) via Facebook app. I have a facebook application that does that without problems. But my question is what would be the bast way of linking facebook id to my local user account?&lt;/p&gt;


	&lt;p&gt;Currently i do the following&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;upon app instalation I ask user to put in his application&amp;#8217;s login &lt;/li&gt;
		&lt;li&gt;I link his login ( if found ) with facebook_id&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;Though it works fine for me, there is a big security concern in it. Anyone can come in and just choose somebody else&amp;#8217;s link thus overriding facebook id of the other user.&lt;/p&gt;


	&lt;p&gt;Any ideas, suggestions would be greatly appriciated on that topic.&lt;/p&gt;


	&lt;p&gt;&lt;span class="caps"&gt;BTW&lt;/span&gt;, really awesome book in couple of hours I was up and running.&lt;br /&gt;Thanks a lot Mike&lt;/p&gt;</description>
      <pubDate>Wed, 30 Apr 2008 16:02:17 -0000</pubDate>
      <guid isPermaLink="false">fora.pragprog.com:59:378:2690</guid>
      <author>Gregory Bluvshteyn</author>
      <link>http://fora.pragprog.com/forums/59/topics/378</link>
    </item>
    <item>
      <title>Integrate into Existing Application posted by Jay McGaffigan @ Mon, 21 Apr 2008 17:35:18 -0000</title>
      <description>&lt;p&gt;Thanks mike!  That&amp;#8217;s super helpful.&lt;/p&gt;


	&lt;p&gt;and thanks for the tip on the mailing list.  I&amp;#8217;ll be heading over there now.&lt;/p&gt;</description>
      <pubDate>Mon, 21 Apr 2008 17:35:18 -0000</pubDate>
      <guid isPermaLink="false">fora.pragprog.com:59:378:2614</guid>
      <author>Jay McGaffigan</author>
      <link>http://fora.pragprog.com/forums/59/topics/378</link>
    </item>
    <item>
      <title>Integrate into Existing Application posted by Mike Mangino @ Mon, 21 Apr 2008 16:59:44 -0000</title>
      <description>&lt;p&gt;You could create a FacebookController class that includes the &amp;#8220;ensure_application&amp;#8230;&amp;#8221; and then make all of your Facebook controllers descend from that.&lt;/p&gt;


	&lt;p&gt;The routing also isn&amp;#8217;t that bad. You can do&lt;br /&gt;&lt;pre&gt;&lt;code&gt;
map.with_options :conditions=&amp;gt;{:canvas=&amp;gt;false} do |non_fb|

  non_fb.resources :users
  # all other routes here
end
&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The Facebooker mailing list is a good place for these discussions. There are people on the list that have more experience integrating Facebook with an existing app than I do.&lt;/p&gt;</description>
      <pubDate>Mon, 21 Apr 2008 16:59:44 -0000</pubDate>
      <guid isPermaLink="false">fora.pragprog.com:59:378:2613</guid>
      <author>Mike Mangino</author>
      <link>http://fora.pragprog.com/forums/59/topics/378</link>
    </item>
    <item>
      <title>Integrate into Existing Application posted by Jay McGaffigan @ Mon, 21 Apr 2008 16:10:28 -0000</title>
      <description>&lt;p&gt;Hi all,&lt;/p&gt;


	&lt;p&gt;Mike I just finished reading your latest chapter and it&amp;#8217;s pretty good.  I&amp;#8217;m wondering tho,  What if I have an existing website that&amp;#8217;s already in production and I&amp;#8217;m creating a Facebook application to go with it?   At first blush it seems to me that should I follow the guidance offered in your chapter and integrate my site with the facebook application that in reality what will happen is that my main site becomes subsumed by the facebook application.  What I mean is that it feels like I would have to attach to all my routes the :canvas =&amp;gt; false option, and all my non facebook controllers will need to have the before_filter to skip the application check.  Is this observation true?&lt;/p&gt;


	&lt;p&gt;what I am thinking is that I would like to be able to segment the facebook stuff from my website stuff via something like separate routes, or checking the request in application.rb and setting things up to either render as html or render as fbml in the controller actions (just like you can render as :xml) (although I&amp;#8217;m not confident that is a way to go).&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m starting to develop a facebook application where factors influencing design/implementation point me to wanting to be able to separate out the facebook stuff from the main website to the point that they may have to be two separate applications in the future.&lt;/p&gt;


	&lt;p&gt;Do you (or anyone) know of other information/discussion forums on integrating FB into an existing app?&lt;/p&gt;


	&lt;p&gt;Great book so far.&lt;br /&gt;Thanks!&lt;br /&gt;Jay&lt;/p&gt;</description>
      <pubDate>Mon, 21 Apr 2008 16:10:28 -0000</pubDate>
      <guid isPermaLink="false">fora.pragprog.com:59:378:2612</guid>
      <author>Jay McGaffigan</author>
      <link>http://fora.pragprog.com/forums/59/topics/378</link>
    </item>
  </channel>
</rss>
