Displaying 20 results from an estimated 300 matches similar to: "Double Frame Problem"
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 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 Aug 19
6
redirect with application add
There are groups within our app that people can be invited too. If a user
recieves an invite to a group and hasn''t yet added the application the
filter chain ends up redirecting them to the main canvas page instead of the
the group page directly. Is there a way to handle this if the user hasn''t
installed the app, I tried redirect_back_or_default in one of my controllers
but it
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 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 Jun 16
0
Strange problem with ActionMailer
I have the following code to send out email notifications. The view
can vary for each call to signup_confirmation, so I''m setting
template_root on each call in order to do that. It works for a while,
but after a few days it will start using a value of signup_path that
was used in a previous call. In other words, Notifier.template_root =
signup path does not actually set
2006 Jun 21
0
Possible bug in actionmailer
I have the following code to send out email notifications. The view
can vary for each call to signup_confirmation, so I''m setting
template_root on each call in order to do that. It works for a while,
but after a few days it will start using a value of signup_path that
was used in a previous call. In other words, Notifier.template_root =
signup path does not actually set
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 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 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 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 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 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
2007 Nov 02
4
Login Redirect - Hacking the session[original_uri]
Hi There,
I have several ajax elements that require authorization, but for various
reasons, they can''t pass session[original_uri] to the redirect on user
log in. I''m trying to hack in a uri by passing a param to the login
page.
I can see that the param is passing into the login page, but for
whatever reason, no matter what I do, the user is redirected to the
homepage after
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 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 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
2006 Jul 14
8
CAS Authentication filter.
Hi
CAS is a centralized authentication service, and the cas_auth filter can
be installed to automatically make your web application authenticate
against a CAS server. The SVN path to the plugin is
http://svn.ki.se/rails/plugins/cas_auth
and a homepage with some information can be found at
http://opensource.ki.se/casauth.html
For use, just install the plugin in your application and set
2008 Mar 01
15
before_filter strange behaviour on update and create
Hi,
I wrote a authentication script and I''m calling it like this in every
class:
class Blah < ApplicationController
before_filter :auth
def auth
req_perm = Permission.find_by_name("Permission Blah")
access = AccessController.new()
if access.is_logged_in(session.session_id)
if
!access.get_current_user(session.session_id).role.permissions.include?
req_perm
redirect_to
2010 Apr 06
1
captcha in a belongs_to
Hi
I am using simple_captcha. I have two models User and Staff.
Relation ship are
User has_one staff
staff belongs_to user
Now in the staff edit I have to include a captcha. I did like
<% form_for @user, :url => staff_url(@staff), :html => {:method => :put
} do |f|%>
<p>
<%= f.text_field :first_name,:maxlength => 50 %>
</p>