You should be able to change redirect url using the standard settings of auth.
http://www.web2py.com/books/default/chapter/29/09/access-control#Auth-Settings-and-messages You do not need ajax, just a window.open() or a <a href=".." target="_blank"> or an iframe 2016-04-10 9:38 GMT+02:00 killzane <[email protected]>: > I followed the web2py book > http://web2py.com/books/default/chapter/29/09/access-control#Other-login-methods-and-login-forms > and > put the example code in my model > > and I use this in my controllers named *default.py* > def fbLogin(): > auth.settings.login_form=FaceBookAccount() > form = auth() > > return dict(form=form) > > When I visit this page, I can see facebook Oauth. > there are some problem I want to solve. > 1. why the *redirect_uri* set to [app]/default/user/login but not > [app]/default/fbLogin? > may I set it manual? > > 2. facebook suggest me to show a window to show the Oauth page, but I'm > not really know how to do it in web2py. > I should use ajax to do it? or some other way? > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

