Twitter api text field value is truncated

后端 未结 2 1181
名媛妹妹
名媛妹妹 2021-02-02 05:03

why text field value is truncated and how can i get complete value. As of now i am trying to get text field value like below

do {
       if let responseObject =          


        
2条回答
  •  一整个雨季
    2021-02-02 05:50

    The Twitter API has been changed recently, to support new rules regarding the 280 characters limit.

    1. To get the full text of the tweet, add parameter tweet_mode with value extended to your request parameters.
    2. Field text in the JSON response has been replaced by full_text

    More info here: https://dev.twitter.com/overview/api/upcoming-changes-to-tweets

提交回复
热议问题