[Facebooker-talk] integrating facebooker into an existing application

Jay McGaffigan hooligan495 at verizon.net
Tue Apr 22 20:32:21 EDT 2008


Hi all, 

So I am trying to understand how to integrate a facebook application into my
web application.  Mike has given me some good pointers.  But I am at a point
where I am rummaging through the code and have stumbled upon a problem that
I am not sure how to resolve.  

The issue might be related to this fix:
http://rubyforge.org/pipermail/facebooker-talk/2008-March/000471.html

but I'm not sure.

So let me describe my scenario. 

I have an existing web application.  I want to integrate a Facebook
application into it in such a way that after a demo of this we may want to
pull the facebook app stuff into it's own web application.  

So to start I have added the plugin.  And discovered the following
dependency in the tests:
Rails_integration_tests have a 'require "ruby-debug"' statement in it.  I
didn't have this gem installed and when I removed the require statement and
the tests all passed except for one (which causes a warning in Ruby and an
error in JRuby).  A question I have here is ... is it worth pointing out the
dependency on ruby-debug to this list? (I believe it's a native gem)

Next I setup my application to use the proper session store. 
A quick jump to my app's homepage and all still looks well.

Next I setup my facebooker.yml file.  And the problems start for my web
app's non-facebook pages.  When I goto my homepage.  The style information
fails to load.  This is due to the fact that all my resources are being
referenced with a URL that looks like my callback_url.
(http://ip/jay).

If I undo the fix referenced in the URL above, my problem goes away, but I
don't want to undo that fix without understanding the implications.  Being
new to using facebooker, does anyone have a couple of paragraphs they can
share on how the routing works for facebooker?  

Any help would be super appreciated! 

Jay

PS:  I'll be at railsconf also and would be interested in joining for a beer
if you'll have me :)









More information about the Facebooker-talk mailing list