Hi all,
I am trying to incorporate Facebook's registration plugin into a
webapp I am developing but I am stuck at a point and need some
clarifications on how Auth in web2py really works.

First of all, I have been able to connect to facebook and retrieve
signed data about users from it. I have also been able to decoded the
signed data and the result is a JSON hash.
Now I am stuck on how to insert this data into my db.auth_user table
in the case of "registration" and comparing my facebook data with what
is in db.auth_user table in the case of "login".
I would really like to know how to call the login or register methods
of the auth class and pass in the facebook data without submitting it
through the default form presented by going to "application/default/
user".
Also can I do a manual insert insert and do:
auth.user = myfacebookdata["username"] ?
will the user become logged in? and will all my auth functions work?
I hope my question is clear enough? and if its not, I will be happy to
clarify what I want to do exactly.
Thanks
Pystar

Reply via email to