Which of these user fields can be retrieved from Facebook, and how?
I'm doing a website where the client wants to retrieve as much of a user's profile info as possible, and then pre-fill the sign up form of our website with this info.
These are the fields that our sign up form has:
- First & Last name
- Gender (male/female开发者_运维百科)
- Post code
- Date of birth
1) Which of these fields can be retrieved from facebook after a user authorizes our app?
2) Which permissions do we need to ask for in the 'scope' paramater when redirecting the user to facebook's login dailog?
3) Which API method(s) are used to retrieve the above info once a user has authorized the app and we have received the access token?
- All of them should be available (I am not 100% sure about postcode though). Note: They are only available to fetch if the user specified them at all.
-
For first/last name and gender -
user_about_me
. For Birth Date -user_birthday
. For his postcode -user -address
. For his email -email
. - I'd go with FQL, which can be used by the JavaScript SDK, with the fb.data.query method.
精彩评论