Facebook的API – 如何获取用户的地址,电话号码?

任何人都可以得到Facebook用户的地址,电话#使用FQL或graphicsAPI?

已经尝试过以下的FQL,能够得到“基本信息”下的“当前城市”和“家乡”,而不是“联系信息”下的“地址”或“电话”。

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)

这些属性是专门和故意无法通过API,由于垃圾邮件的原因(也可能是其他原因)…

Facebook确实在2011年1月发表了一篇博客文章 ,提到user_address和user_mobile_phone的扩展权限,可以使用电话号码和地址字段,但是他们删除了这些权限。

手机的fql字段是“cell”和“other_phone”,但是您的应用程序需要被列入白名单才能访问它们。

我在他们最近的文档中发现了phone_number,但是Facebook并没有在其他地方提到它。 他们可能正在计划介绍他们的更新。

链接: https : //developers.facebook.com/docs/ios/graph

 // Add the properties particular to the type restaurant.restaurant restaurant[@"restaurant"] = @{@"category": @[@"Mexican"], @"contact_info": @{@"street_address": @"123 Some st", @"locality": @"Menlo Park", @"region": @"CA", @"phone_number": @"555-555-555", @"website": @"http://www.example.com"}}; 

您可以在代码中看到@“phone_number”:@“555-555-555”。