Url in tweet not showing up in tweet preview


#1

When getting a tweet preview, first I create a promoted tweet, and then use the tweetId I get back and query the preview endpoint. When I specify a url in the tweet text, the preview I get back does not contain the url. Does anyone know why? Do I have to format/encode urls in a certain way?

https://ads-api.twitter.com/0/accounts/18ce53vjuh5/tweet?status=“test tweet http://muse.mx

get tweet id, then:

https://ads-api.twitter.com/0/18ce53vjuh5/tweet/preview/656265287868657664

result:

<div class=\"Tweet-text \" dir=\"\">test tweet</div>:

whole preview:

{"android":"<!DOCTYPE html><html><head>  <meta charset=\"utf-8\" />    <link href=\"https://ton.twimg.com/macaw-campaigns/css/tweet_preview.bundle.386eb1401b0e14924639.css\" rel=\"stylesheet\" /></head><body>    <div class=\"Tweet--timeline TweetTweet--android\" dir=\"\" data-tweet-id=\"\">  <img class=\"Tweet-avatar\" src=\"https://abs.twimg.com/sticky/default_profile_images/default_profile_0_normal.png\" width=\"48\" height=\"48\" alt=\"\"/>  <div class=\"Tweet-body\">    <div class=\"Tweet-header\">      <div class=\"Tweet-userData\">        <a href=\"//twitter.com/eaglescoutsdev\" target=\"_blank\" class=\"Tweet-name\">Test Account</a>        <a href=\"//twitter.com/eaglescoutsdev\" target=\"_blank\" class=\"Tweet-screenName\">@eaglescoutsdev</a>      </div>      <small class=\"Tweet-timeLabel\">        <span class=\"Tweet-timestamp\">          <span class=\"Icon Icon--clock\"></span>                  </span>      </small>    </div>    <div class=\"Tweet-text \" dir=\"\">test tweet</div>      <a class=\"Tweet-photoContainer\" href=\"http://pbs.twimg.com/media/CReYOAuVAAEWlYU.jpg\" target=\"_blank\">  <img alt=\"Embedded image permalink\" class=\"Tweet-photo\" src=\"http://pbs.twimg.com/media/CReYOAuVAAEWlYU.jpg\"></a>    <div class=\"Tweet-context Tweet-context--promotion\">      <div class=\"Tweet-badge Tweet-badge--promotedBy\">        <span class=\"Icon Icon--promotedGray\"></span>        <span class=\"Tweet-badgeText\">Promoted</span>      </div>    </div>  </div></div></body></html>","web":"<!DOCTYPE html><html><head>  <meta charset=\"utf-8\" />    <link href=\"https://ton.twimg.com/macaw-campaigns/css/tweet_preview.bundle.386eb1401b0e14924639.css\" rel=\"stylesheet\" /></head><body>    <div class=\"Tweet--timeline TweetTweet--web\" dir=\"\" data-tweet-id=\"\">  <img class=\"Tweet-avatar\" src=\"https://abs.twimg.com/sticky/default_profile_images/default_profile_0_normal.png\" width=\"48\" height=\"48\" alt=\"\"/>  <div class=\"Tweet-body\">    <div class=\"Tweet-header\">      <div class=\"Tweet-userData\">        <a href=\"//twitter.com/eaglescoutsdev\" target=\"_blank\" class=\"Tweet-name\">Test Account</a>        <a href=\"//twitter.com/eaglescoutsdev\" target=\"_blank\" class=\"Tweet-screenName\">@eaglescoutsdev</a>      </div>      <small class=\"Tweet-timeLabel\">        <span class=\"Tweet-timestamp\">          <span class=\"Icon Icon--clock\"></span>                  </span>      </small>    </div>    <div class=\"Tweet-text \" dir=\"\">test tweet</div>      <a class=\"Tweet-photoContainer\" href=\"http://pbs.twimg.com/media/CReYOAuVAAEWlYU.jpg\" target=\"_blank\">  <img alt=\"Embedded image permalink\" class=\"Tweet-photo\" src=\"http://pbs.twimg.com/media/CReYOAuVAAEWlYU.jpg\"></a>    <div class=\"Tweet-context Tweet-context--promotion\">      <div class=\"Tweet-badge Tweet-badge--promotedBy\">        <span class=\"Icon Icon--promotedGray\"></span>        <span class=\"Tweet-badgeText\">Promoted</span>      </div>    </div>  </div></div></body></html>","iphone":"<!DOCTYPE html><html><head>  <meta charset=\"utf-8\" />    <link href=\"https://ton.twimg.com/macaw-campaigns/css/tweet_preview.bundle.386eb1401b0e14924639.css\" rel=\"stylesheet\" /></head><body>    <div class=\"Tweet--timeline TweetTweet--iphone\" dir=\"\" data-tweet-id=\"\">  <img class=\"Tweet-avatar\" src=\"https://abs.twimg.com/sticky/default_profile_images/default_profile_0_normal.png\" width=\"48\" height=\"48\" alt=\"\"/>  <div class=\"Tweet-body\">    <div class=\"Tweet-header\">      <div class=\"Tweet-userData\">        <a href=\"//twitter.com/eaglescoutsdev\" target=\"_blank\" class=\"Tweet-name\">Test Account</a>        <a href=\"//twitter.com/eaglescoutsdev\" target=\"_blank\" class=\"Tweet-screenName\">@eaglescoutsdev</a>      </div>      <small class=\"Tweet-timeLabel\">        <span class=\"Tweet-timestamp\">          <span class=\"Icon Icon--clock\"></span>                  </span>      </small>    </div>    <div class=\"Tweet-text \" dir=\"\">test tweet</div>      <a class=\"Tweet-photoContainer\" href=\"http://pbs.twimg.com/media/CReYOAuVAAEWlYU.jpg\" target=\"_blank\">  <img alt=\"Embedded image permalink\" class=\"Tweet-photo\" src=\"http://pbs.twimg.com/media/CReYOAuVAAEWlYU.jpg\"></a>    <div class=\"Tweet-context Tweet-context--promotion\">      <div class=\"Tweet-badge Tweet-badge--promotedBy\">        <span class=\"Icon Icon--promotedGray\"></span>        <span class=\"Tweet-badgeText\">Promoted</span>      </div>    </div>  </div></div></body></html>"}

Promoted Tweet preview with link (problem)
#2

Thanks for reporting that issue, we’ve definitely noticed this as well and are working on the issue on our end. This bug has also been discussed on a previous thread: Promoted Tweet preview with link (problem), so please follow that for details and updates.


#3