Displaying 20 results from an estimated 1000 matches similar to: "bug in external apps"
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 24
12
getting started with facebooker
Hi,
I started with rfacebook but given the recent events figure its best
to move over to facebooker.
I have:
1.) Installed the facebooker plugin
2.) setup my facebook app (fbml/canvas)
3.) created a method on controller & view to handle initial request
4.) added "ensure_application_is_installed_by_facebook_user" to top
off application.rb
I am able to get to my landing page
2008 Jan 23
4
redirect_to broken?
Is ActionController''s redirect_to method broken by Facebooker? When I try to invoke it and execute through apps.facebook.com, I get a blank page returned, response code 200, no redirect. When I try to connect directly to the server (not through apps.fb), I get the infinite recursion error described minutes ago. Are any of you able to use redirect_to successfully, and if so, any ideas
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 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 =
2007 Nov 02
1
Some proposed changes
I''ve got some changes queued up that I want to run by everyone before
I commit.
First, I''ve added a filter that sets the :format variable to "fbml"
when you are in the canvas view. That means with edge rails you can
use index.fbml.erb for facebook and index.html.erb for non facebook
requests and the right thing will happen. This is important for doing
things
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 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
2005 Mar 15
0
0.10.0, Routes and Query strings
So I made the leap to 0.10.0 but I can not get routes to play nice
with query strings...
I have this mapping in my routes.rb file
map.connect '':controller/:action/:id'', :controller => ''main_controller''
This is all cool and everything works fine http://www.siteroot.com/
maps to http://www.siteroot.com/main_controller/index
But when I add a query string to
2008 Jan 11
18
getting started
Hey all,
Been reading through all the old posts (and the docs) to familiarize
myself but I still feel a bit lost.
I''m on trunk and am having a bit of a hard time knowing where to start
with the particular I''m trying to solve.
So far, I''ve downloaded backgroundrb, done the basic rails setup,
created my worker and started it using `script/backgroundrb start`.
2008 Jan 15
0
Fwd: strange routing problem
Figured it out. I had commented the environment lines for testing something. So if anyone has that routing error, then you''re missing your config lines in the environment. :)
Shawn
----- Begin forwarded message -----
From: Shawn Van Ittersum <svicalifornia at gmail.com>
Date: Tue, 15 Jan 2008 13:19:12 -0800
To: facebooker-talk at rubyforge.org
Subject: strange routing problem
2008 Apr 02
1
facebooker plugin!?
I''m trying to create a facebook application but I have no success. I
either get one of those two errors depending on which revision of the
plugin I use:
CGI::Session::CookieStore::TamperedWithCookie (Using plugin from directory)
or
ActionView::TemplateError (Session key invalid or no longer valid)
(Using plugin from a week ago or so).
Has anyone successfully gotten an app that as to
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 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 Jul 18
1
Fixtures Max Size? SystemStackError: stack level too deep
Hello,
I have a table of zipcodes that I am using in my application, so there
are approximately 50,000 rows in this table. I have dumped the table to
a fixture yaml file to represent this data, but when I try to load it, I
get this error: SystemStackError: stack level too deep
Is there a max size allowed for a fixture file..?
Here is the --trace output:
rake db:fixtures:load --trace
**
2006 Aug 15
0
SystemStackError: stack level too deep
Hi
I have two models Keyword and KeywordResult, they basically look like this:
class KeywordResult < ActiveRecord::Base
belongs_to :keyword
validates_presence_of :title, :url, :keyword_id
end
class Keyword < ActiveRecord::Base
has_many :keyword_results, :dependent => :delete_all
acts_as_tree :order => "text", :foreign_key => "top_keyword"
end
Before you
2009 Apr 12
0
rails 2.3 nested forms with has_many through checkboxes
I was wondering if anyone knew of a way to combine the new nested
forms in rails 2.3 with a has_many through relationship via
checkboxes. Basically I have a page model, a page_category model and
a category_items join table. Pages have many page categories through
category items. The category_items table is polymorphic so i can use
it for other models who need categories (maybe this is
2008 Mar 18
4
respond_to formats, fbml and fbjs
In my controllers I have a respond_to block for both fbml and fbjs.
I created the fbjs mime type in environment.rb:
Mime::Type.register "application/javascript", :fbjs
However, even if I specify fbjs in a parameter name format during AJAX
post requests, it is being overwritten by Rails or Facebooker as FBML.
I confirmed this by placing logger.debug params[:format] immediately
before
2008 Jan 29
17
facebook_url_rewriting.rb
Here''s the fix for Facebook apps that specify a controller in their callback URLs. First, set this variable in your environment scripts:
ENV[''FACEBOOKER_CALLBACK_PATH''] = ''/controller''
# where controller is the name of your Facebook controller
And then patch vendor/plugins/facebooker/lib/facebooker/rails/facebook_url_rewriting.rb as shown in the
2008 Jan 31
2
Facebooker and file_column
Facebooker URL Rewriter stuff overloads ActionController::AbstractRequest.relative_url_root, causing a conflict with the plugin file_column and possibly other utilities. file_column constructs image URLs using the server host and relative_url_root
This is not related to the sandbox patch I added to the rewriter. Facebooker overloaded relative_url_root before I touched it.
I''ve