Twitter Tools
[resolved] Retweets are truncated when converted to blog posts (3 posts)

  1. auctionmethod
    Posted 2 years ago #

    I have my WordPress blog set up to publish retweets from one of my Twitter accounts. The problem is that all of longer tweets are truncated when they are converted into blog posts. Check out http://everysingleauction.com/archives/author/twitter.

    How do I display the original message?


  2. Alex King
    Plugin Contributor

    Posted 2 years ago #

    I believe the tweets are truncated in the data received from Twitter. A patch to reach deeper to the original tweet would probably solve this - please feel free to open a pull request on GitHub if you create a patch to do this.

  3. auctionmethod
    Posted 2 years ago #

    Hi Alex.

    The issue with truncated retweets is discussed here: https://code.google.com/p/twitter-api/issues/detail?id=2261.

    Here's the solution, I believe:

    When reading Retweets from XML and JSON API responses you should ensure your code is inspecting the text attribute of the retweeted_status object.

    For example, there are two 'text' attributes in the response for Tweet 88002464741203968. One is the truncated RSS/Atom/SMS format of the Tweet (Text) and the other is the original Tweet that was retweeted (retweeted_status.text). The correct one to use is the retweeted_status.text version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Twitter Tools
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic