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

Reply via email to