gpt4 book ai didi

android - API Facebook 使用 getBirthday() 返回 null

转载 作者:行者123 更新时间:2023-11-30 03:34:27 26 4
gpt4 key购买 nike

<分区>

您好,我正在使用 SDK Android、Eclipse 和 API Facebook 在 Android 上进行编程。我使用此代码获取生日。

public void onCompleted(GraphUser user, Response response) {
if (user != null) {
user.getBirthday();

但是 getBirthday 返回 null。

我需要知道用户的生日。我尝试使用此代码获取 JSON:

JSONObject json = user.getInnerJSONObject();

检查 JSON,日期没有出现。我该怎么做才能过生日?

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com