search for: ensure_authenticated_to_facebook

Displaying 7 results from an estimated 7 matches for "ensure_authenticated_to_facebook".

2008 Jun 12
6
Session Best Practices
Hi All- I am still trying to figure out the best way to handle facebook session for my users. Here is my current flow: in my "external accounts controller" 1) before_filter :ensure_authenticated_to_facebook, :only => [:authenticate_facebook, :edit_facebook] 2) when the user links into facebook, facebooker authenticates and redirects back to my application 3) i detect the "auth_token" param in my method and store the session_key 4) now the session[:facebook_session] is good to go ....
2008 Jan 29
3
Facebook Redirects to Callback Path after log in
...fore. I can''t seem to figure out what Facebook is doing. I have an application that only requires Facebook Authentication, the user doesn''t need to "add" the app. So at the top of my main controller I have class GettingStartedController < ApplicationController ensure_authenticated_to_facebook ...... end I hit the app and get this URL http://www.facebook.com/tos.php?api_key=442c6504bd2362d8a7fba7303cd583ca&next=&v=1.0# After I get the log in screen facebook sends a redirect to the CALLBACK path http://staging.travelerstable.com:8888/?auth_token=8a83bf3c4f33b5cb16d423c29266...
2008 Mar 30
0
undefined method using ensure_authenticated
I''ve stepped through the basics of setting up facebooker, but I consistently see this message: "undefined local variable or method `ensure_authenticated_to_facebook'' for FacebookController:Class" My controller is defined: << class FacebookController < ApplicationController ensure_authenticated_to_facebook def index @facebook_user = session[:facebook_session].user end end >> I have this route: << map.root :controll...
2008 Jan 26
3
Facebooker::Session::IncorrectSignature
...rb:43:in `all?'' vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:43:in `secure_with_facebook_params!'' vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:15:in `set_facebook_session'' vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:130:in `ensure_authenticated_to_facebook'' vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:135:in `ensure_application_is_installed_by_facebook_user'' As far as troubleshooting goes, I started digging into the code, but quickly realized that without understanding how the Facebook sessions are expected to funct...
2008 Mar 27
0
handling post-remove URL / uninstall of application
...sers doesn''t apply here, because FB doesn''t send the normal set of user information for this call. Instead it sends a custom POST. So first, I have to disable all my normal before_filters, ensure_application_is_installed_by_facebook_user [:except => :post_remove] ensure_authenticated_to_facebook [:except => :post_remove] before_filter :get_user, :except => :post_remove Now I''ve defined something like this in my controller: def post_remove if request.post? raise "Incorrect API Key" unless params[''fb_sig_api_key''] == Facebooker...
2008 May 15
3
Facebooker support for iframe apps
Hi facebooker-ers, It looks to me like facebooker does not currently support iframe facebook apps - or am I missing something? My first problem as I understand it is as follows - When you are logged into facebook, and access a facebook application, facebook tacks on a whole lot of extra fb_sig parameters to the request (including fb_sig_user) that the application can then validate to
2008 Mar 25
7
Facebooker::Session::SessionExpired (Session key invalid or no longer valid)
Hi All, I''m having horrible problems with this exception, which seems to happen as soon as I access the session object. Does anyone know what the path is to recover from this? This post looked to be the most promising: http://rubyforge.org/pipermail/facebooker-talk/2007-December/000047.html And I followed all of the steps except switching my session store, and modifying the default