Ram Ravichandran
2008-Jul-15 07:24 UTC
[Facebooker-talk] redirect_to not preserving the base url
I notice that when I do a redirect_to from one action to another in the controller "fb_sig_in_new_facebook" does not get passed along. Is there anyway to fix this before the next release of the api? Thanks Ram -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080715/77f3b9fa/attachment-0001.html>
Aurélien Malisart
2008-Jul-30 20:17 UTC
[Facebooker-talk] redirect_to not preserving the base url
I do get the same with the named routes now... e.g. : my_model_path doesn''t include ''my_app_name/'' at the begining. So, my routes are well recognized but not well generated. Or I missed something! I think it worked before I pulled the last version of Facebooker... aurels -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080730/55fb1214/attachment.html>
Aurélien Malisart
2008-Aug-27 16:33 UTC
[Facebooker-talk] redirect_to not preserving the base url
(Ram Ravichandran, sorry for the duplicate, I made a mistake in the reply email address) On Mon, Aug 25, 2008 at 8:03 PM, Aur?lien Malisart <aurelien.malisart at gmail.com> wrote: Hi, Is it normal that, when using canvas, if I call a " *_path " or " *_url " route helper, the canvas prefix is not included? Thanks... really stuck on this. Aur?lien Malisart aurelien.malisart at gmail.com http://aurelien.malisart.be -- Aur?lien Malisart aurelien.malisart at gmail.com http://aurelien.malisart.be
Mike Mangino
2008-Aug-27 17:10 UTC
[Facebooker-talk] redirect_to not preserving the base url
It should. What does your configuration look like? Mike On Jul 30, 2008, at 4:17 PM, Aur?lien Malisart wrote:> I do get the same with the named routes now... > > e.g. : my_model_path doesn''t include ''my_app_name/'' at the begining. > So, my routes are well recognized but not well generated. Or I > missed something! > > I think it worked before I pulled the last version of Facebooker... > > aurels > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
Aurélien Malisart
2008-Aug-27 18:24 UTC
[Facebooker-talk] redirect_to not preserving the base url
On Wed, Aug 27, 2008 at 7:10 PM, Mike Mangino <mmangino at elevatedrails.com> wrote:> It should. What does your configuration look like?My facebooker.yml is ''classical'': development: api_key: ** secret_key: ** canvas_page_name: forty_two_dev callback_url: ** tunnel: public_host_username: aurels public_host: ** public_port: 3000 local_port: 3000 Nothing related to facebooker in my environment.rb. What else config might be related? If I manually enter the url, the routing is OK. Only the generation isn''t working. Thank you.
Mike Mangino
2008-Aug-27 20:25 UTC
[Facebooker-talk] redirect_to not preserving the base url
So in a facebook request, you''re running something like users_path and not getting ''/forty_two_dev/users'' Is facebook sending the fb_sig_in_canvas parameter? Can you include the params info from your log? Mike On Aug 27, 2008, at 2:24 PM, Aur?lien Malisart wrote:> On Wed, Aug 27, 2008 at 7:10 PM, Mike Mangino > <mmangino at elevatedrails.com> wrote: >> It should. What does your configuration look like? > > My facebooker.yml is ''classical'': > > development: > api_key: ** > secret_key: ** > canvas_page_name: forty_two_dev > callback_url: ** > tunnel: > public_host_username: aurels > public_host: ** > public_port: 3000 > local_port: 3000 > > Nothing related to facebooker in my environment.rb. What else config > might be related? > If I manually enter the url, the routing is OK. Only the generation > isn''t working. > > Thank you.-- Mike Mangino http://www.elevatedrails.com
Allen Walker
2008-Aug-27 20:42 UTC
[Facebooker-talk] redirect_to not preserving the base url
I have one question regarding this: if the user goes to a specific URL in the app that requires him to install the app, then he clicks "allow", when the user does this it is redirecting back to the apps home page (apps.facebook.com/myapp) instead of back to the URL before he clicked "allow access". how do I fix that? I have "ensure_application_is_installed_by_facebook_user" in my application.rb btw. thanks Mike Mangino wrote:> So in a facebook request, you''re running something like users_path and > not getting ''/forty_two_dev/users'' > > Is facebook sending the fb_sig_in_canvas parameter? Can you include > the params info from your log? > > Mike > > On Aug 27, 2008, at 2:24 PM, Aur?lien Malisart wrote: > >> On Wed, Aug 27, 2008 at 7:10 PM, Mike Mangino >> <mmangino at elevatedrails.com> wrote: >>> It should. What does your configuration look like? >> >> My facebooker.yml is ''classical'': >> >> development: >> api_key: ** >> secret_key: ** >> canvas_page_name: forty_two_dev >> callback_url: ** >> tunnel: >> public_host_username: aurels >> public_host: ** >> public_port: 3000 >> local_port: 3000 >> >> Nothing related to facebooker in my environment.rb. What else config >> might be related? >> If I manually enter the url, the routing is OK. Only the generation >> isn''t working. >> >> Thank you. > > -- > Mike Mangino > http://www.elevatedrails.com > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >
Allen, It can be configured via the post add url. If you want to do a redirect_to :back, you have to fudge it by setting a cookie and redirecting when they get back to your app. BJ On Aug 27, 2008, at 2:42 PM, Allen Walker wrote:> I have one question regarding this: > > if the user goes to a specific URL in the app that requires him to > install the app, then he clicks "allow", when the user does this it > is redirecting back to the apps home page (apps.facebook.com/myapp) > instead of back to the URL before he clicked "allow access". how do > I fix that? > > I have "ensure_application_is_installed_by_facebook_user" in my > application.rb btw. > > thanks > > Mike Mangino wrote: >> So in a facebook request, you''re running something like users_path >> and not getting ''/forty_two_dev/users'' >> >> Is facebook sending the fb_sig_in_canvas parameter? Can you include >> the params info from your log? >> >> Mike >> >> On Aug 27, 2008, at 2:24 PM, Aur?lien Malisart wrote: >> >>> On Wed, Aug 27, 2008 at 7:10 PM, Mike Mangino >>> <mmangino at elevatedrails.com> wrote: >>>> It should. What does your configuration look like? >>> >>> My facebooker.yml is ''classical'': >>> >>> development: >>> api_key: ** >>> secret_key: ** >>> canvas_page_name: forty_two_dev >>> callback_url: ** >>> tunnel: >>> public_host_username: aurels >>> public_host: ** >>> public_port: 3000 >>> local_port: 3000 >>> >>> Nothing related to facebooker in my environment.rb. What else config >>> might be related? >>> If I manually enter the url, the routing is OK. Only the generation >>> isn''t working. >>> >>> Thank you. >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk
Allen Walker
2008-Aug-27 21:27 UTC
[Facebooker-talk] redirect_to not preserving the base url
Uggh. this sounds sorta messy . Do you have any example code I could use? Thanks BJ Clark wrote:> Allen, > It can be configured via the post add url. > > If you want to do a redirect_to :back, you have to fudge it by setting > a cookie and redirecting when they get back to your app. > > BJ > > > On Aug 27, 2008, at 2:42 PM, Allen Walker wrote: > >> I have one question regarding this: >> >> if the user goes to a specific URL in the app that requires him to >> install the app, then he clicks "allow", when the user does this it >> is redirecting back to the apps home page (apps.facebook.com/myapp) >> instead of back to the URL before he clicked "allow access". how do I >> fix that? >> >> I have "ensure_application_is_installed_by_facebook_user" in my >> application.rb btw. >> >> thanks >> >> Mike Mangino wrote: >>> So in a facebook request, you''re running something like users_path >>> and not getting ''/forty_two_dev/users'' >>> >>> Is facebook sending the fb_sig_in_canvas parameter? Can you include >>> the params info from your log? >>> >>> Mike >>> >>> On Aug 27, 2008, at 2:24 PM, Aur?lien Malisart wrote: >>> >>>> On Wed, Aug 27, 2008 at 7:10 PM, Mike Mangino >>>> <mmangino at elevatedrails.com> wrote: >>>>> It should. What does your configuration look like? >>>> >>>> My facebooker.yml is ''classical'': >>>> >>>> development: >>>> api_key: ** >>>> secret_key: ** >>>> canvas_page_name: forty_two_dev >>>> callback_url: ** >>>> tunnel: >>>> public_host_username: aurels >>>> public_host: ** >>>> public_port: 3000 >>>> local_port: 3000 >>>> >>>> Nothing related to facebooker in my environment.rb. What else config >>>> might be related? >>>> If I manually enter the url, the routing is OK. Only the generation >>>> isn''t working. >>>> >>>> Thank you. >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >
Aurélien Malisart
2008-Aug-28 10:06 UTC
[Facebooker-talk] redirect_to not preserving the base url
Hello, On Wed, Aug 27, 2008 at 10:25 PM, Mike Mangino <mmangino at elevatedrails.com> wrote:> So in a facebook request, you''re running something like users_path and not > getting ''/forty_two_dev/users''Yes that''s it. I get /users only.> Is facebook sending the fb_sig_in_canvas parameter? Can you include the > params info from your log?Here it is: Processing MainController#index (for 127.0.0.1 at 2008-08-28 12:03:10) [GET] Session ID: ff2514e3076a243fec62c5f6-723231803 Parameters: {"fb_sig_time"=>"1219917788.5793", "fb_sig"=>"30b65670c6722740e2fc9ddd0379e160", "fb_sig_in_new_facebook"=>"1", "_method"=>"GET", "fb_sig_locale"=>"en_US", "action"=>"index", "fb_sig_session_key"=>"ff2514e3076a243fec62c5f6-723231803", "fb_sig_position_fix"=>"1", "fb_sig_in_canvas"=>"1", "fb_sig_request_method"=>"GET", "controller"=>"main", "fb_sig_expires"=>"0", "fb_sig_added"=>"1", "fb_sig_friends"=>"7951628,61213342,61214298,341000028,500395884,500463730,506392817,514043942,520137775,523559443,526454251,527896767,529344453,532326092,535432155,536402263,539954578,540476247,546374846,547033855,548665617,548858617,552743294,558571686,559641879,560046648,560181697,560734308,560908006,564832519,565423327,565538677,568891628,569032142,571863464,575632249,578382222,582961959,584255969,585812963,596549804,599752534,603072019,605568795,605991842,606549631,606558203,607748235,608361844,609800622,615052913,617037570,617369279,617523411,627404898,628804571,629782904,633545985,634478837,637284422,637813500,644332416,649499528,649737047,652055894,654255325,654384090,654477132,655625422,664735859,666650793,666884390,670034903,670248485,673357163,674763820,675797062,675896484,676183187,677299172,677683256,677906808,678527698,685338345,688179267,689748879,689873662,690795972,690885855,694990925,698995705,700419865,700771894,703433083,705720608,708523731,710763966,710909716,712301778,712670424,715815825,723582167,725013485,731073432,740938827,740954416,743533828,746339584,753469575,757949662,762143859,763953704,764147833,764598517,771302706,773493048,776099451,785114941,786728919,787743863,801034123,809014450,813809640,814949030,817205494,828983817,833344538,837344164,840702317,842927484,843918585,846874823,896200056,898675367,1002317377,1003341863,1003836606,1007654373,1014521705,1016913326,1017128782,1019123679,1021020330,1021835861,1027934938,1028487369,1036217390,1037087487,1040984539,1046769289,1048250086,1057250452,1065463919,1066097241,1068200204,1071312123,1074731684,1079496489,1082102266,1095812497,1118628330,1136056695,1189572249,1191970248,1194096058,1222011118,1222274533,1223383219,1236461457,1275519282,1297817246,1315572354,1341300846,1348277733,1400250138,1430467680,1437548588,1604340093", "fb_sig_api_key"=>"68efb9e1ec363213bdcc8baf2648ccc1", "fb_sig_user"=>"723231803", "fb_sig_profile_update_time"=>"1218656599"} So yes it is present and set to 1. -- Aur?lien Malisart aurelien.malisart at gmail.com http://aurelien.malisart.be
Aurélien Malisart
2008-Aug-28 14:20 UTC
[Facebooker-talk] redirect_to not preserving the base url
On Thu, Aug 28, 2008 at 2:15 PM, Mike Mangino <mmangino at elevatedrails.com> wrote:> That all looks fine. What version of rails are you running? Can you > duplicate this error with a simple application? Everything looks okay from > what your sending so I don''t really know where the problem is. If you can > send me a simple app that duplicates the problem I will try to figure it > out.I''m on Edge. You pointed on it: if I switch to 2.1, everything is OK. Isn''t facebooker compatible with Edge? On Thu, Aug 28, 2008 at 3:45 PM, Mike Mangino <mmangino at elevatedrails.com> wrote:> I don''t think any of us run on edge, so it may not be. I know a lot of the > view and routing is being refactored. I usually wait until they do release > candidates to try to add support.OK I see, it must be that. I''ll use 2.1 instead (don''t have any special reason of using edge). Thank you for your help and your work on this plugin Mike. Other facebooker users, please manifest yourself if you''re using Facebooker (successfuly) with edge... -- Aur?lien Malisart aurelien.malisart at gmail.com http://aurelien.malisart.be