简体   繁体   English

Facebook Graph API-年的朋友生日?

[英]Facebook Graph API - Friend's Birthday with year?

I am using graph api with friends_birthday permission. 我正在使用带有Friends_birthday权限的图形API。

I am getting month and date only. 我只得到月份和日期。 How to get the year? 如何获得年份?

Thanks 谢谢

The information returned is based off that user's privacy settings. 返回的信息基于该用户的隐私设置。 If the user has allowed it to be displayed to friends, then you will receive the year. 如果用户允许将其显示给朋友,则您将收到年份。 Otherwise, only the information you can retrieve is what is permitted. 否则,仅允许您检索的信息是允许的。 For example, if you look at some user's profiles, you will notice that the only portion of the birthday displayed is month and day. 例如,如果查看某些用户的配置文件,您会注意到显示的生日的唯一部分是月份和日期。 If this is the case, then the year would not be returned as that user has not given Facebook permission to make that information available. 如果是这种情况,则不会返回该年份,因为该用户未授予Facebook允许提供该信息的权限。 There is no way around this. 没有办法解决这个问题。

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

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