简体   繁体   English

如何使用Hackbook示例获取Facebook朋友的生日

[英]How to get facebook friends birth dates using Hackbook sample

I am new in Android, and using HACKBOOK sample application for Facebook Android Developers, by click on Get Friends row still i am only getting name of friends but here i also want to show upcoming birthdays for my fb friends,either by using Graph API or FQL 我是Android新手,并且使用适用于Facebook Android开发人员的HACKBOOK示例应用程序,通过单击“获取朋友”行,我仍然只是获得朋友的名字,但是在这里,我还想通过使用Graph API或fb朋友来显示我的fb朋友即将到来的生日FQL

like:- 喜欢:-

Henry 亨利

Turns 25 today 今天25岁

Plumbla 梅花

Turns 18 in 10 days 10天内年满18岁

Craley 克莱利

Turns 26 in 306 days 306日满26岁

When you create the request, you need to add "birthday" to the "fields" parameter. 创建请求时,需要在“字段”参数中添加“生日”。

In Hackbook, it would look like this: 在Hackbook中,它看起来像这样:

Bundle params = new Bundle();
params.putString("fields", "name,picture,location,birthday");

You can see the other possible fields from this doc . 您可以从此文档中看到其他可能的字段。

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

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