I want to display users picture,age and email-id.
Here is the code.
from gluon.tools import Auth, Service, PluginManager

auth = Auth(db)
auth.settings.extra_fields['auth_user']= [
  Field('address'),
  Field('age'),
  Field('zip'),
  Field('phone')]
service = Service()
plugins = PluginManager()

## create all tables needed by auth if not custom tables
auth.define_tables(username=False, signature=False)
from gluon.contrib.login_methods.rpx_account import RPXAccount
auth.settings.actions_disabled=['register','change_password','request_reset_password']
auth.settings.login_form = RPXAccount(request,
    api_key='4f469d524a074cf7f1e9f354ae189204c8ded7ae',
    domain='pricebaba',
    url = "http://127.0.0.1:8000/Test/default/user/login"; .format( 
request.application) )
auth.settings.login_form.mappings.Facebook = lambda profile:           
 dict(registration_id = profile["identifier"],
                 username = profile["preferredUsername"],
                 age=profile["age"],
                 first_name = profile["name"]["givenName"],
                 last_name = profile["name"]["familyName"])

Please anyone explain me how to solve this problem, I beginner please help 
me. 

-- 
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.

Reply via email to