Displaying 20 results from an estimated 100 matches similar to: "Order of authentication methods is causing unnecessary call to API?"
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 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
2006 Apr 21
8
web services and dealing with before_filter
Hi all,
I''ve got a Rails app with a ApplicationController that looks like this:
class ApplicationController < ActionController::Base
before_filter :authorize, :except => :login
def authorize
unless session[:user]
flash[:notice] = "Please log in"
session[:jumpto] = request.parameters
redirect_to :controller =>
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
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
2001 Dec 04
0
PATCH: log key fingerprint upon successful login
This patch is against 3.0.2p1. It produces output like the first line in the
example below for both v1 and v2 logins. Logging is turned on by sticking
``LogFingerprint yes'' in sshd_conf. It would be nice if something like this
would make it into OpenSSH.
Dec 4 14:21:09 lizzy.bugworks.com sshd[7774]: [ID 800047 auth.info] Found
matching RSA1 key:
2008 Dec 19
1
session[:facebook_session]
not sure if my prior message went through, given that I sent before
confirming my membership to the list.
Is anyone concerned with the practice of saving the entire fb session
object in the session hash? I''m likely going to blow away all the
"@var |= " statements and just use the api calls when I need to access
data, since my understanding is that it''s bad
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 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
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
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 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 Jan 10
3
A best practices question
Hey everyone. I''ve got a best practices question. How are you guys
rendering newsfeeds? We have a couple of apps where we send newsfeed
items from a backend process. As such, we aren''t in the context of a
controller and can''t use the rails template rendering. We''ve tried
about 3 different ways to make that bearable, but aren''t having much
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?
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 Mar 11
0
How to get a facebook session for desktop applications (or unit tests?)
Normally, in a rails app, all one would have to do is call
set_facebook_session, or the ensure_* filters to get a valid session.
I''ve been looking through the sessions code to figure out how to get a
valid session for desktop applications (or unit tests)--basically
outside of rails controller.
As far as I can ascertain, you should just be able to do this:
require
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
2006 Aug 17
7
preventing multiple logins
I want to set my app up to prevent multiple simultaneous logins by the
same user. What strategies are people using? Is it worth going to
database session storage just for this?
martin
2008 Jan 24
1
New Batch API method
Anyone started implementing the new Batch api method?
BJ
-----
BJ Clark
the science department
bjclark at scidept.com
www.scidept.com