Facebook connect, email address?

前端 未结 2 1876
梦如初夏
梦如初夏 2020-12-31 18:45

When you add facebook connect to allow facebook users to signin to your site, can you retireve the users name and email addresss?

2条回答
  •  孤独总比滥情好
    2020-12-31 19:08

    Yes, you need to prompt them for data permission "email" first though. Facebook is also changing the way you can get access to private data very soon (hell, they change their API and policies daily; who can keep up). Check out the following links for more:

    • http://developers.facebook.com/docs/authentication/permissions
    • http://developers.facebook.com/docs/guides/upgrade#permissions

    You'll want to add the list of permissions you want to prompt for in the login:

    • http://developers.facebook.com/docs/reference/javascript/FB.login

提交回复
热议问题