简体   繁体   English

iOS \\ Android Facebook SDK - 获取好友列表,其中一些没有用户名

[英]iOS \ Android Facebook SDK - get friends list, some without username

I'm using iOS and Android Facebook native SDK in my app. 我在我的应用程序中使用iOS和Android Facebook原生SDK。 In general, I'm getting the friends list, each with name, birthday (if public) and username. 一般来说,我正在收到朋友列表,每个列表都有姓名,生日(如果公开)和用户名。 About the birthday property, I know that one can block it from appearing in mobile apps (or at all). 关于生日财产,我知道可以阻止它出现在移动应用程序中(或根本没有)。 But I see that in some rare cases, username is NULL. 但我发现在极少数情况下,username是NULL。 I couldn't find any explanation for it in the Facebook documentation. 我在Facebook文档中找不到任何解释。

Any help will be great. 任何帮助都会很棒。

Some people just haven't chosen a username. 有些人还没有选择用户名。

If you look on the www page, their profile links will be facebook.com/profile.php?id=user_id rather than facebook.com/username. 如果您在www页面上查看,他们的个人资料链接将是facebook.com/profile.php?id=user_id而不是facebook.com/username。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM