Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter embedded timeline never updates

We're using the Twitter Embedded Timeline widget which is documented here.

According to the documentation, it is supposed to auto-update its self "in real time":

These new timeline tools are built specifically for the web, mobile web, and touch devices. They load fast, scale with your traffic, and update in real-time.

But it is not doing that. The iframe loads fine initially, but then never updates. When I watch the network tab in the Chrome developer tools, I don't see any errors, or further network requests for data.

Has anyone else noticed this? Is the documentations simply incorrect and that functionality doesn't exist? I'm using the this code snippet, provided by Twitter:

<a class="twitter-timeline" data-screen-name="foxnews" data-widget-id="11111111111111" data-chrome="nofooter noheader noscrollbar transparent" data-tweet-limit="10"></a> 
  <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?"http":"https";if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
  if (typeof(twttr) !== "undefined") {
    twttr.widgets.load();
  }
</script>

UPDATE The updates will appear if I use the snippet exactly as-is from the wizard/generator. However when I add the customization data attributes, it stops working.

like image 568
emersonthis Avatar asked Apr 22 '15 20:04

emersonthis


People also ask

Why is my Twitter feed not updating?

In most cases, a faulty server or slow internet connection is the primary reason for the Twitter feed not working. However, it is also possible that the problem lies within third-party applications, your settings, or an outdated version of the app.

Why are tweets not showing on my timeline?

Tweets more than a week old may fail to display in timelines or search because of indexing capacity restrictions. Old Tweets are never lost, but cannot always be displayed.

Why is my Twitter feed showing old posts?

Q. Why is my Twitter feed suddenly out of chronological order? A. In addition to the “While You Were Away” groupings of older posts at the top of your timeline, Twitter recently began to show what it considers the “best” tweets for you first — before you see more current material.

Why doesn't my Twitter feed show all tweets?

At times, product bugs may prevent Tweets from being shown. Additionally, when there is an overwhelming volume of replies to a Tweet, our platform may be unable to show all replies. We use @TwitterSupport to notify the community when we experience any technical issue. Learn more.


1 Answers

It turns out that this is the expected behavior when using data-tweet-limit="#" to customize the number tweets which appear. When I remove this attribute the widget polls for updates again.

like image 193
emersonthis Avatar answered Sep 25 '22 01:09

emersonthis