similar to: undefined method using ensure_authenticated

Displaying 20 results from an estimated 800 matches similar to: "undefined method using ensure_authenticated"

2008 Jan 23
2
Accessing the current session
I''m trying to fetch a session (and other fb user variables from the session) at the start of my controller, so that all the actions in that controller can make use of it. Here''s the code: class FacebookController < ApplicationController ensure_application_is_installed_by_facebook_user fb_session = session[:facebook_session] # ... action functions here ... end
2008 Apr 04
0
something wrong with event_members
I''ve got this code in one of my views: <% for event in @facebook_session.events( :uid => @facebook_user.uid ) %> <p><%= @facebook_session.event_members(event.eid).length %></p> <% end %> It should print the # of people coming to each of this user''s events. Let''s say that would be "5 12 8". Instead
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 =&gt; [:authenticate_facebook, :edit_facebook] 2) when the user links into facebook, facebooker authenticates and redirects back to my application 3) i detect the
2008 Mar 27
0
handling post-remove URL / uninstall of application
Hi there, I''ve configured my post-remove URL (which has to be directly to my site, not an apps.facebook.com URL) and now I''m trying to figure out how to handle this. It''s poorly documented here: http://wiki.developers.facebook.com/index.php/Post-Remove_URL It seems as though support for this is currently not yet in Facebooker. In order to get it to work, it
2008 Mar 12
3
a way to restrict who can install your app, for private testing
This is something I just cooked up to allow me to restrict temporarily who can access my app, based on an array of UIDs. It''s messy but works. Put at the top of your controller, at the end of your filters. # This filter is only until we open everything up before_filter do |c| acceptable_uids = [''594180515'', ''122612996''] unless
2008 May 07
4
Updating a Facebook Status
Does anyone know how to update a Facebook Status with Facebooker?
2008 Jul 28
2
Profile updates using profile_main
Hi all! I just updated to the most recent version of Facebooker from Github and have been playing around with getting our FB app working with the new Facebook design at www.new.facebook.com (using the "api: new" option in the facebooker.yml file). As far as I can tell, everything seems to be working as expected so far except I can''t seem to get our apps profile box to
2008 Apr 03
3
loading settings from database
I''m just wondering what the best way to go about loading my API keys from the database is ... Should I simply place them in the ENV variable? Is there a way better way to go about this?
2008 Jan 29
3
Facebook Redirects to Callback Path after log in
Hey, I am wondering if anyone has run into this issue before. 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 ......
2008 May 06
1
check_friendship method only returning value of last pair
Hello, I''m new to facebooker and ruby, so not sure if the issue I am having is due to my misunderstanding or a bug in facebooker plugin. Here is what I have: def show @current_user ||= facebook_session.user @member ||= params[:id].to_s==@current_user.id.to_s ? @current_user : Facebooker::User.new(params[:id]) #for each of current_user''s friends, check if they are
2008 Jun 12
0
Double Frame Problem
The only solution I''ve seen to the problem of the nested frame on the login/install pages (when using iframes rather than fbml), is to use JS to cause a redirect (c.f. http://rubyforge.org/pipermail/facebooker-talk/2008-May/000638.html, http://webjazz.blogspot.com/2008/03/gotchas-of-internal-iframe-facebook.html): def create_new_facebook_session_and_redirect!
2008 Dec 16
3
ApplicationProperties
Hi There, I was wondering what the appropriate way to use the applicationproperties.rb model was. I was hoping to query it to find out which users are developers for my app and then grant special permissions to them ... I tried creating something like this: class ApplicationProperties < ActiveRecord::Base def facebook_session @facebook_session ||= returning
2008 Jan 23
0
bug in external apps
I was connecting directly to my server to try to debug something. I disabled the ensure_application_is_installed_by_facebook_user check, then tried to connect to my index action. Got this error: SystemStackError in FacebookController#index stack level too deep RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace
2008 Jan 26
3
Facebooker::Session::IncorrectSignature
I think I must be missing something obvious on this one, but I can''t get past the initial "ensure_application_is_installed_by_facebook_user" in a rails app that I''m trying to put together. I''m running on edge rails with the latest Facebooker as a plugin. I''ve tried adding my settings to the environment configs and recently I tried the new yaml
2008 Feb 14
0
New features: Application properties and cookies
Hey guys- Two new features: Set/get app properties like this: properties = { :application_name => "Video Jukebox", :default_fbml => "blah" } facebook_session.admin.set_app_properties(properties) properties = facebook_session.admin.get_app_properties(:application_name, :default_fbml) Set/get cookies: facebook_session.data.set_cookie(uid,
2008 Jun 03
2
Order of authentication methods is causing unnecessary call to API?
Hey Guys, I am wondering if I am missing something here. I am noticing that after a user installs my app I get a request that not only contains an auth_key but also contains a valid session key. Occasionally I am seeing that Facebook server is occasionally sending a connection reset during the auth key authentication method, this caused me to notice that secure_with_token is given precedence in
2008 Apr 08
3
Session Expired for Profile Publishing
Ok. I''m not having any success with publishing profile FBML. Example code: class WelcomeController < ApplicationController layout "facebook" ensure_application_is_installed_by_facebook_user def index @user = facebook_session.user ... @user.profile_fbml = render_to_string( :template => ''welcome/profile'' ) end end Results in
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
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
2007 Dec 22
1
upgraded to rails 2.0.1 and borked sessions
I just pushed my facebook app up to 2.0.1 and noticed that I am now getting these errors: ActionView::TemplateError (Session key invalid or no longer valid) on line #3 of users/index.fbml.erb: It appears that I get the facebook_session object back but when i introspect and try and get the user''s name or something i get the session error. Has anyone else had these problems?