in tools.py line 1436:
next = URL(r=request) + '?_next=' + next
should be like this?
next = self.url('user', args='login') + '?_next=' + next
2010/8/22 Michele Comitini <[email protected]>:
> Ok found a way to fix the problem with redirection (_next parameter).
> Massimo pls look if the following is correct!
>
>
> diff -r 9261ce4eda7f gluon/tools.py
> --- a/gluon/tools.py Thu Aug 19 04:13:54 2010 +0200
> +++ b/gluon/tools.py Sun Aug 22 00:08:25 2010 +0200
> @@ -982,7 +983,7 @@
> request = self.environment.request
> args = request.args
> if not args:
> - redirect(self.url(args='login'))
> + redirect(self.url(args='login', vars=request.vars))
> elif args[0] in self.settings.actions_disabled:
> raise HTTP(404)
> if args[0] == 'login':
>
>
> 2010/8/20 Michele Comitini <[email protected]>:
>> Hello Narendran,
>>
>> Do not use that it is old..
>>
>> now facebook is supported inside web2py distribution with oauth20_account.py
>> you can find an example app here:
>> http://code.google.com/r/michelecomitini-facebookaccess/source/browse/#hg/applications/helloFacebook
>>
>> for a simple example usage of graph api look here:
>> http://code.google.com/r/michelecomitini-facebookaccess/source/browse/applications/helloFacebook/models/grafb.py
>> http://code.google.com/r/michelecomitini-facebookaccess/source/browse/applications/helloFacebook/controllers/graph.py
>> http://code.google.com/r/michelecomitini-facebookaccess/source/browse/#hg/applications/helloFacebook/views/graph
>>
>>
>> for the redirection after login I am investigating...
>>
>> mic
>>
>> 2010/8/20 Narendran <[email protected]>:
>>> Hello all,
>>> I picked the Facebook oauth submitted by mcm from
>>> https://code.google.com/r/michelecomitini-facebookaccess/source/browse/gluon/contrib/login_methods/facebook_account.py
>>> (referred in this thread:
>>> http://groups.google.com/group/web2py/browse_thread/thread/be441047bf237f9/6ea33cf0d4bfba63?lnk=gst&q=facebook+oauth#6ea33cf0d4bfba63)
>>>
>>> I am facing one isse:
>>> 1. I've placed require_login decoration on a method say a(). After the
>>> authentication is complete, the page always gets redirected to default/
>>> index, whereas the ideal behaviour would be to go to a(). It works as
>>> intended if I use default auth instead of Facebook auth.
>>>
>>> Also, is there any plugin/package that would provide full-fledged
>>> support for using Facebook Graph API with web2py?
>>>
>>> --
>>> Thanks
>>> Narendran
>>
>