[Facebooker-talk] redirect_to not preserving the base url
BJ Clark
bjclark at scidept.com
Wed Aug 27 17:11:44 EDT 2008
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
More information about the Facebooker-talk
mailing list