9

有人可以使用 FQL 或 Graph api 获取 facebook 用户的地址、电话号码吗?

已尝试以下 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)

4

3 回答 3

21

出于防止垃圾邮件的原因(可能还有其他原因),这些属性是专门且有意通过 API 提供的......

于 2010-08-04T02:57:32.590 回答
11

Facebook 确实在 2011 年 1 月通过提示输入 user_address 和 user_mobile_phone 扩展权限发布了一篇博文,称电话号码和地址字段可用,但他们随后删除了这些权限。

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

于 2011-06-20T05:36:25.273 回答
0

我在他们最近的文档中找到了 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"。

于 2014-08-18T11:48:04.003 回答