Home > facebooker-authlogic-bridge

facebooker-authlogic-bridge

Facebooker-authlogic-bridge is a project mainly written in RUBY and JAVASCRIPT, it's free.

Skeleton Rails App for coherently handling both facebooker and authlogic users

This is a Skeleton Application bridging a rails web application using Authlogic and Facebook Connect, as well as a native Facebook Canvas Application.

The web application is hosted free at http://facebooker-authlogic-bridge.heroku.com/

The Facebook application is located at http://apps.facebook.com/fb-authlogic-bridge/

The code is hosted at Github here, http://github.com/fluidtickets/facebooker-authlogic-bridge

and can be cloned here: [email protected]:fluidtickets/facebooker-authlogic-bridge.git

Google Group Discussion Here: http://groups.google.com/group/facebooker/browse_thread/thread/537a502de800f683

This application is structured around the Authlogic example tutorial. It's definitely possible to clean this up within the Authlogic code, but i'll leave that to someone else.

I've use Facebooker to handle both Facebook Connect and Canvas applications.

ApplicationController#current_user handles getting the current user from the various possible sessions.

current_user can be used anywhere in the application, no matter how the user logged in.

Like in AuthLogic, require_user and require_no_user can be used as before filters.

The before filter :check_if_fb_app_installed? ensures that the canvas app was explicitly added by the user. Facebook won't pass the correct session_key otherwise.

BUG ALERT: There is currently a bug when logging out of facebook connect on the web app. You need to click Facebook's logout button twice. If anyone has a fix for this, please email me at [email protected]

== LICENSE:

(The MIT License)

Copyright (c) 2010 Charlie White

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.