Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/378.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java spring社交推特更新状态未提供id\u str_Java_Spring_Twitter_Spring Social Twitter - Fatal编程技术网

Java spring社交推特更新状态未提供id\u str

Java spring社交推特更新状态未提供id\u str,java,spring,twitter,spring-social-twitter,Java,Spring,Twitter,Spring Social Twitter,我正在使用SpringSocialTwitter进行我的项目。我正在尝试使tweet成为最受欢迎的,为此我需要id_str=您的tweet id。但问题是,当我使用spring social更新状态时,它的返回id=但不是id_str。我看到它正在返回类。在那个类中没有像id_str这样的字段,所以我的问题是如何获得id_str 注:id和id_str注相同。它返回不同的值。id和id\u str应该相同。id_str存在是因为某些平台难以处理非常大的整数 您应该使用getId,然后将long转

我正在使用SpringSocialTwitter进行我的项目。我正在尝试使tweet成为最受欢迎的,为此我需要id_str=您的tweet id。但问题是,当我使用spring social更新状态时,它的返回id=但不是id_str。我看到它正在返回类。在那个类中没有像id_str这样的字段,所以我的问题是如何获得id_str

注:id和id_str注相同。它返回不同的值。

id和id\u str应该相同。id_str存在是因为某些平台难以处理非常大的整数


您应该使用getId,然后将long转换为字符串。

该id\u str在extraData映射中可用:


twitterProfile.getExtraData.getid\u str

谢谢特伦斯。我以前已经查过了。即使你看看twitter控制台。在此尝试更新状态中,它将同时提供id和id_str,两者都是不同的。