similar to: More on routing, relative_root and facebooker

Displaying 20 results from an estimated 8000 matches similar to: "More on routing, relative_root and facebooker"

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 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 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 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 26
14
Introducing facebooker.yml
If you are using facebooker as a plugin, you can now have all your configuration in one place, namely config/facebooker.yml. You can create this file with rake facebooker:setup. It is also generated when you install it as a plugin. It has a similar setup to database.yml with sections for each environment. You can also configure your ssh reverse tunnels. If you are upgrading, make sure to
2008 Jan 31
3
Using facebooker AND Haml/Sass
For anyone using both and encountering trouble with stylesheets (specifically, the paths being incorrect in production mode)... Removing facebooker solves the issue. But I bet you don''t want to do that, eh? So, simply setting ActionController::Base.asset_host = '''' also works like butter. I''m not 100% clear on why asset_host has anything to do with
2008 May 15
8
facebooker, respond_to and firefox 3 beta5/pre
Hi there, I have a controller that responds to fbml and html, with html at the top. In all browsers, this works as expected - When I''m hitting the controller from my normal app, I get html. When I hit it inside facebook, I get fbml. However, with Firefox 3 hitting the normal app, I''m getting fbml for some odd reason. Am I crazy? Sudara
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
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 Jan 25
5
ajax with facebooker?
So if I am using fbml,canvas & facebooker, can I do ajax calls? if so how? From reading it seems they support some sort of mock ajax, but I don''t really understand, can somone explain to me? If I cant do ajax, can I still do javascript? Can I use 3rd party libs like prototype & scriptaculous? thanks Joel
2008 Mar 06
5
Setting :canvas => false for URL generation doesn''t always work?
I generate a lot of URL''s in my Facebook related code that point to our main site, not our FB app. My understanding was that the way to do this was to use ":canvas => false" as a parameter to url_for and link_to and so on. However, that doesn''t seem to generate the proper URL''s. The URL''s still point to apps.facebook.com (because they
2008 Jan 28
3
A style question
I''m working on the ability to share a single session between Facebook and Non-Facebook requests. Right now, to setup a shared session, you create a link like: <%= link_to "Non-Facebook view",leaders_url(facebook_session_parameters.merge(:canvas=>false))%> The facebook_session_parameters includes all of the necessary info. Is this okay, or would it be better as
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 11
6
couple of newbie questions about redirects
I''m working on an app, and am new to both ruby and facebooker. Here is my current area of confusion: What should happen on a user''s initial visit to my app? When I hit apps.facebook.com/<my app> for the first time with no cookies or sessions or anything, I''m asked if I want to log into the app, etc., and am then redirected to my callback url outside of facebook.
2009 Apr 22
1
how can I get the friends of a fb user only using his facebook id
hello, with facebooker can I get a list of someone''s facebook friends, only using his facebook id? If yes, then please let me know how... (and don''t read further) If this is not possible, then here is my problem: ------------------------------------------- I have a flash movie embedded in the canvas page of my Facebooker application. The movie gets information from an xml
2008 Mar 10
15
facebooker is rewriting URLs even off of facebook canvas
The URLs for CSS/JS files are being rewritten to the address specified in the tunnel even when outside of the facebook canvas. Is anyone else having this problem?
2008 Feb 01
2
Facebooker interfering with existing application
Hi! I have an existing application, basically a very simple Hobo app. It works... When I install the Facebooker plugin and create the facebooker.yml file (with valid or fake content, doesn''t matter), the original app starts behaving strangely. The controller and view logic keeps working, but several static files stop being served from http://localhost:3000/javascripts and start being
2007 Nov 09
2
Helpers and URL Rewriting
Hey folks, I''m part way through a project using, I think rev 73 of Facebooker, and was getting along pretty well. I''ve since tried the latest rev (86) and have run into a few problems. First one was with the helpers in that for some reason now none of them are available so I''ve had to use helper :application, etc in my controller. Second one, which
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 Mar 14
8
Facebooker updates
I just went through and cleaned out most of the bugs and patches. I also added a facebooker.js file that implements enough of prototype to do $() and link_to_remote with :update and remote_form_for with :update Let me know if you run into any issues with it. Mike -- Mike Mangino http://www.elevatedrails.com