【问题标题】:ACAccount Facebook property username return email and sometimes the nicknameACAccount Facebook 属性用户名返回电子邮件,有时是昵称
【发布时间】:2013-10-16 12:09:18
【问题描述】:

当我使用 ACAccountStore 访问 Facebook 帐户以获取 ACAccount 对象时,我注意到对于某些个人资料,ACAccount.username 给我 Facebook 电子邮件,但对于其他个人资料,给我昵称...怎么可能相同的属性包含不同的值?

这让我发疯......

【问题讨论】:

    标签: ios facebook ios7 acaccount acaccountstore


    【解决方案1】:

    是的,这对我来说也很奇怪。 但我可以从属性字段中收到电子邮件,如下所示:

    NSString *email = [[account valueForKey:@"properties"] objectForKey:@"ACUIDisplayUsername"];
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-11-11
      • 1970-01-01
      • 2017-09-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-19
      • 1970-01-01
      相关资源
      最近更新 更多