[英]Facebook social login get user name, email, phone
I would like to know what are the prerequirements for facebook API to allow a PHP web page to pull the following user data: 我想知道Facebook API允许PHP Web页面提取以下用户数据的先决条件:
As far as I understand, pulling the phone number requires that your website is whitelisted with facebook / Websense ? 据我了解,提取电话号码要求将您的网站列入Facebook / Websense白名单?
Please advice. 请指教。
Thank you! 谢谢!
As Facebook uses OAuth, you have to build a so-called login flow. 当Facebook使用OAuth时,您必须构建一个所谓的登录流程。 See the docs at
请参阅以下位置的文档
Within this flow, you have to request permissions from the user . 在此流程中,您必须向用户请求权限 。 For your use case, you'll need
对于您的用例,您需要
public_profile
email
There's no chance to get the phone number out of the Graph API. 没有机会从Graph API中获取电话号码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.