【问题标题】:Spring Social Facebook: Is there a way to get phone number?Spring Social Facebook:有没有办法获取电话号码?
【发布时间】:2017-02-16 02:31:10
【问题描述】:

有没有办法获取电话号码?我正在使用 SpringSocial 和 Facebook.fetchObjects 似乎没有选项

    String accessToken = "trhhh";
    Facebook facebook = new FacebookTemplate(accessToken);      
    String [] fields = { "id", "about", "age_range", 
            "birthday", "context", "cover", 
            "currency", "devices", "education",
            "email", "favorite_athletes",
            "favorite_teams", "first_name", "gender",
            "hometown", "inspirational_people",
            "installed", "install_type", "is_verified", 
            "languages", "last_name", "link", "locale", 
            "location", "meeting_for", "middle_name", 
            "name", "name_format", "political", 
            "quotes", "payment_pricepoints", "relationship_status",
            "religion", "security_settings", "significant_other",
            "sports", "test_group", "timezone", "third_party_id",
            "updated_time", "verified", "video_upload_limits",
            "viewer_can_send_gift", "website", "work"};
    User userProfile = facebook.fetchObject("me", User.class, fields);

【问题讨论】:

    标签: java facebook facebook-graph-api spring-social spring-social-facebook


    【解决方案1】:

    没有。无法通过 API 获取用户的电话号码。

    【讨论】:

      猜你喜欢
      • 2020-04-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-12
      相关资源
      最近更新 更多