search for: facebooker_relative_url_root

Displaying 9 results from an estimated 9 matches for "facebooker_relative_url_root".

2008 Mar 20
2
Anyone having problems with asset_host not getting set up right?
...n init.rb with: if File.exist?(facebook_config) FACEBOOKER = YAML.load_file(facebook_config)[RAILS_ENV] ENV[''FACEBOOK_API_KEY''] = FACEBOOKER[''api_key''] ENV[''FACEBOOK_SECRET_KEY''] = FACEBOOKER[''secret_key''] ENV[''FACEBOOKER_RELATIVE_URL_ROOT''] = FACEBOOKER[''canvas_page_name''] ActionController::Base.asset_host ||= FACEBOOKER[''callback_url''] end But ActionController::Base.asset_host == "" So it never gets set -- which means stylesheets and images gon''t get pulled in from...
2007 Dec 04
5
new facebooker
Hi guys, I am new to this list and thought i''d say hello. I am using facebooker on a new project and so far I am really pleased with it. I saw that some users are having woes with the url_rewriter breaking urls for paths outside of the facebook canvas (i.e. your site supports both facebook and non-facebook users). I don''t have a prefect answer for this but I wrote a
2007 Dec 08
3
Uploading photos using facebook & attachment_fu
Hi All, I''m trying to use a form to upload a photo that I will save using attachment_fu. I''m very new to Facebookr so I apologize if this is covered somewhere, but I''m kind of stumped. Here''s what I''m doing now: <% facebook_form_for(:my_object, :url => { :action => ''upload_photo'', :id => params[:id] }, :html => {
2008 Jun 15
11
[PATCH] helper to create fb css stylized table
I attached a rails helper implementation of the fb_table described here: http://wiki.developers.facebook.com/index.php/Facebook_Styles I included testing and comments. I hope you find it useful. Curiously, it''s really a small extension of FBML. Richard -------------- next part -------------- Index: test/rails_integration_test.rb
2008 Jan 25
8
simple routing & linking question
So I have an existing app & facebook app in same rails application, for now I have decided to go the route of creating a controller for facebook stuff (called FaceController). (setup is canvas, fbml) So I have: facebook config http://myurl:myport/face/ My controllers name is face, so I dont even need a manual route, for the landing page it works like a charm. but, when I try to make
2008 Jan 25
3
More on routing, relative_root and facebooker
...want my app being hit at the base or to define a route at the app root - I have 90% of my non-facebook stuff running off the root and want the facebook stuff namespaced. I try it anyway... I set my facebook callback url to http://mydomain.com # somewhere in config/initializers ENV[''FACEBOOKER_RELATIVE_URL_ROOT''] = '''' # in routes.rb map.facebook_accounts '''', :controller => ''facebook_accounts'', :condition => {:canvas => true} Ok, that breaks everything. My normal routes no longer function, nor do my helpers for those routes....
2007 Dec 20
0
Relative URL fix
...a bit so that it would continue to use the facebook relative url when needed but not prepend the facebook app name to controller paths that didn''t have anything to do with your facebook app. Here is the current problem: Take for example a resource named sessions and ENV [''FACEBOOKER_RELATIVE_URL_ROOT''] = ''facebook_app''. Sessions has nothing to do with your facebook app yet as Facebooker is written presently "sessions_path" will produce "facebook_app/sessions/" even if the sessions controller doesn''t call any of the facebooker befo...
2007 Dec 10
4
facebook_resources method not found
Is anyone else getting this error in their routes, when running Facebooker from a plugin. ./script/../config/../config/routes.rb:67: undefined method `facebook_resources'' for main:Object (NoMethodError) from /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ action_controller/routing.rb:1139:in `draw'' from ./script/../config/../config/routes.rb:1
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