Facebook API - 如何获取用户的地址、电话号码?
有谁能够使用 FQL 或 Graph api 获取 facebook 用户的地址、电话号码吗?
已尝试以下 FQL,并且能够获取“基本信息”下的“当前城市”和“家乡”,但无法获取“联系信息”下的“地址”或“电话”。
从用户 WHERE uid IN (xxxx) 中选择姓名、名字、姓氏、生日日期、当前位置、家乡位置、图片、个人资料网址、时区、用户名、个人资料更新时间
Is anyone able to get facebook user's address, phone # using FQL or Graph api?
Have tried the following FQL and was able to get 'Current City' and 'Hometown' which are under 'Basic information' but not the 'Address' or 'Phone' which are under 'Contact Information'.
SELECT name,first_name,last_name,birthday_date,current_location,hometown_location,pic,profile_url,timezone,username,profile_update_time FROM user WHERE uid IN (xxxx)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
出于防止垃圾邮件的原因(也许还有其他原因),这些属性特意不通过 API 提供...
These attributes are specifically and intentionally not available via the API, for spam prevention reasons (maybe other reasons as well)...
Facebook 确实发布了
博客文章该电话号码和地址2011 年 1 月,通过提示输入 user_address 和 user_mobile_phone 扩展权限,可以使用这些字段,但后来删除了这些权限。电话 fql 字段为“cell”和“other_phone”,但您的应用程序需要列入白名单才能访问它们。
Facebook did make a
blog postthat phone number and address fields were available by prompting for user_address and user_mobile_phone extended permissions in Jan 2011, but they since removed those permissions.The phone fql fields are "cell" and "other_phone" but your application needs to be whitelisted to access them.
我在他们最近的文档中找到了phone_number,但Facebook在其他地方没有提到它。可能他们正计划在更新中引入。
链接:https://developers.facebook.com/docs/ios/graph
您可以请参阅代码中的@“phone_number”:@“555-555-555”。
I found phone_number in their recent documentation, but Facebook has didn't mention it anywhere else. Might be they are planning to introduce in their updates.
Link : https://developers.facebook.com/docs/ios/graph
You can see @"phone_number": @"555-555-555" in the code.