[Facebooker-talk] ensure_authenticated_to_facebook - redirect?

Mike Mangino mmangino at elevatedrails.com
Fri Aug 15 12:45:52 EDT 2008


That should work for the authorize url as well, somebody just needs to  
submit a patch (hint hint)

Mike

On Aug 15, 2008, at 11:58 AM, David Clements wrote:

> Yes,  You can overide the install url in your application.rb by  
> doing something like this:
>
>
>   def application_is_not_installed_by_facebook_user
>     redirect_to acebook_session.install_url(:next => next_path() )
>   end
>
> Then define next path as a relative part of a canvas url.
>
> Dave
>
>
>
>
> On Fri, Aug 15, 2008 at 9:54 AM, dara <dara at catch.fm> wrote:
> True, you can set post add/authorise URL's, but these are static.
>
> Is this what you want, or is there good a way to let a user continue  
> an action post add/authorise ?
>
> i.e.
>
>  1. click a link to do 'something'
>  2. add/authorise the application
>  3. continue on with the action requested in 1
>
>
> David Clements wrote:
> I think this is because you have your callback url as the post add  
> url.  If you make the post add url a canvas page you won't see this  
> behavior.
>
> Dave
>
>
> On Fri, Aug 15, 2008 at 9:28 AM, Richard Jordan <jordanr at cs.washington.edu 
>  <mailto:jordanr at cs.washington.edu>> wrote:
>
>    I use a before_filter thrown on a facebook auth_token.  Here is
>    the code. ======================================================
>     # when a user authenticates to facebook this before filter  
> redirects
>     # the user back to a fbml canvas page instead of to html on our
>    server.
>     before_filter :redirect_if_auth_key
>
>     # keeps the user inside facebook
>     def redirect_if_auth_key
>       if( params[:auth_token])
>         redirect_to( url_for(:action => "whateveryouwant",
>                           :canvas => true, :only_path => false))
>       end
>     end
>    ======================================================
>
>    Try the filter in your app/controller/application.rb.
>
>    Richard
>
>
>    On Thu, 14 Aug 2008, Allen Walker wrote:
>
>        If someone isn't logged in this filter works - it takes them
>        to the facebook login page. However after logging in it's
>        going to my root application URL outside of facebook. How do I
>        set the proper redirect URL after a user logs into facebook?
>
>        thanks
>        _______________________________________________
>        Facebooker-talk mailing list
>        Facebooker-talk at rubyforge.org
>        <mailto:Facebooker-talk at rubyforge.org>
>
>        http://rubyforge.org/mailman/listinfo/facebooker-talk
>
>
>    _______________________________________________
>    Facebooker-talk mailing list
>    Facebooker-talk at rubyforge.org <mailto: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

--
Mike Mangino
http://www.elevatedrails.com





More information about the Facebooker-talk mailing list