Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
Python and Tcl - public course schedule [here]
Private courses on your site - see [here]
Please ask about maintenance training for Perl, PHP, Lua, etc
 
Has your Twitter feed stopped working? Switching to their new API

From my inbox...

"Got to keep your wits about you with this internet lark haven't you? Discovered the twitter feeds had disappeared from all my sites! Did you know Twitter had changed their APIs and the old ones no longer work!! Not seen anything about it until now..."

Yes, you do have to keep your wits ;-) Twitter turned off their old API in the middle of this month, and Twitter widgets that used it have simply disappeared. The illustration here shows their replacement in action (3 times over!)

The changes were announced in August 2012 - there's background as to why [here]. In that article, Michael Sippy writes for Twitter:

"Currently, in v1.0 of the Twitter API we allow developers access to certain API endpoints without requiring their applications to authenticate, essentially enabling them to access public information from the Twitter API without us knowing who they are. For example, there are many applications that are pulling data from the Twitter API at very high rates (scraping, bots, etc.) where we only know the IP address of the applications. To prevent malicious use of the Twitter API and gain an understanding of what types of applications are accessing the API in order to evolve it to meet the needs of developers, it's important to have visibility into the activity on the Twitter API and the applications using the platform."

There are further implications - firstly, as developers no longer have the ability to simply drop a feed into the web sites they're developing without some sort of saying who they are, it's no longer possible simply to say "I would like feed X here" without setting something up ahead of time, so that (as stated) Twitter know who you are. That's extra work. And secondly, derived from that but not stated in information above, there's the who question of the control of where valuable social media data goes, and the Twitter folks are taking steps to be more owning and controlling of the data from their databases. Not only are they stopping very high pull rates and learning about the application needs, but they're also opening the way to being far more proactive as to who has what, and perhaps whether it contains advertising messages, or it costs money over and above certain volumes of hits.

A further article (last updated on 7th May this year) - [here] describes how JSON is the sole form of data supported, replacing XML (this is a trend we're seeing with services that other clinets are using) and much more. And the whole thing also looks much more complex.

Cutting to the Quick - My correspondent has a site with a feed of his own Twitter contributions keeping news lively on the front page. And he wants to keep something similar. Well - we had just the same thing on one of our pages. The old page included

  <script src="http://widgets.twimg.com/j/2/widget.js"></script>

in the head, and at the position the feed was to display:

  <script> new TWTR.Widget({ version: 2, type: 'profile', rpp: 3, interval:
  6000, width: 200, height: 300, theme: { shell: { background: '#333333',
  color: '#ffffff' }, tweets: { background: '#000000', color: '#ffffff',
  links: '#4aed05' } }, features: { scrollbar: true, loop: false, live:
  false, hashtags: false, timestamp: true, avatars: false, behavior: 'all'
  } }).render().setUser('wellho').start(); </script>


And this code had been cut and pasted from a helper on the Twitter site.

For the new API, I have logged in to Twitter using my wellho account - the one that I want to show on the feed - and selected "settings" followed by "widgets". And I then created a user widget. Which results in the following code to be cut and pasted in place of all of the above:

  <a class="twitter-timeline" href="https://twitter.com/wellho"
  data-widget-id="348380091488808960">Tweets by @wellho</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");
  </script>


Clearly, that ID is my own key from the widget set up tool, and you can't just replace the "wellho" with something else for this to work for your own feed - you need to set up your own widget. But - hopefully - this little article will provide an answer to my correspondent so that he can get the feed, all be it looking a bit different, up and running again easily with - as he hints - so much else going on too!

P.S. This isn't the first time that Twitter have changed their feeds - see [here] for example. And a course that I've taken over that "needs a fresh lick of paint" also had other no-longer-working Twitter feed stuff in it. It can be a bit of a "game" sometimes - our recent upgrade of servers replaced some underlying 10 year old systems with brand new versions, and most of it just worked straight away, whereas some of these supposed "standards we can use" seem much more transient. I have no answer on this, just to reflect on my original correspondent - "Got to keep your wits about you with this internet lark haven't you?"

(written 2013-06-23, updated 2013-06-29)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
G905 - Well House Consultants - Blogging and Blog Administration
  [4714] The technical article feed continues - personal updates more proactive on Facebook now! - (2016-10-30)
  [4568] Moderation - and the tendency to over-moderate - (2015-11-02)
  [4292] The Horse is back! - (2014-09-15)
  [4000] 9 years, and 4000 articles on - (2013-02-09)
  [3759] The five oldest blogs and the horses mouth - (2012-06-09)
  [3514] Microblogging - what I should have tweeted in the last 48 hours - (2011-11-10)
  [3208] Links for social media, microblogs and business networking - (2011-03-20)
  [3186] How to add a customised twitter feed to your site - (2011-02-27)
  [3163] Twitter - the special use of @ # and http: in tweets - (2011-02-09)
  [3016] The legal considerations of your web presence - revisited - (2010-10-26)
  [2823] Where have all the bloggers gone? - (2010-06-24)
  [2751] Going off at a tangent, for a ramble - (2010-05-04)
  [2564] Microblogging services - Plurk, Twitter, Jaiku and more - (2010-01-05)
  [2517] Blogging accuracy - open invitation for any corrections - (2009-11-29)
  [2449] Four aspects - Chamber, Transport, Courses and Hotel - (2009-10-11)
  [2192] Copy writing - allowing for the cut - (2009-05-21)
  [2000] 2000th article - Remember the background and basics - (2009-01-18)
  [1978] From spam to mod_alias - finding resources - (2009-01-05)
  [1203] A Fresh horse - (2007-05-24)
  [1077] In answer to 'am I glad I started a blog' ... - (2007-02-12)
  [1000] One Thousand Posts and still going strong - (2006-12-18)
  [876] Making pages clearer - easy Disability Discrimination Act Compliance - (2006-09-23)
  [671] Both ends of the animal - (2006-04-05)
  [508] Comment, please! - (2005-11-28)
  [425] Caching an XML feed - (2005-08-26)
  [410] Reading a news or blog feed (RSS) in your PHP page - (2005-08-12)
  [405] Horse's Mouth is a year old - (2005-08-07)
  [390] Moderating wiki, blog, and forum contributions - (2005-07-26)
  [359] Chicken soup without the religion - (2005-06-26)
  [245] I'm not blogging it - (2005-03-14)
  [231] Feedback as lifeblood - (2005-02-28)
  [204] The confidence to allow public comments - (2005-02-06)
  [185] Who am I? - (2005-01-21)
  [177] Blogs come of age - (2005-01-14)
  [145] A comment on comments - (2004-12-09)
  [141] Too technical? - (2004-12-05)
  [18] Wanted: More hours in the day - (2004-08-18)
  [6] Blog v Forum - (2004-08-07)
  [1] First Jottings - (2004-08-05)

G911 - Well House Consultants - Search Engine Optimisation
  [3746] Google Analytics and the new UK Cookie law - (2012-06-02)
  [3670] Reading Google Analytics results, based on the relative populations of countries - (2012-03-24)
  [2748] Monitoring the success and traffic of your web site - (2010-05-01)
  [2686] Freedom of Information - consideration for web site designers - (2010-03-20)
  [2562] Tuning the web site for sailing on through this year - (2010-01-03)
  [2552] Web site traffic - real users, or just noise? - (2009-12-26)
  [2428] Diluting History - (2009-09-27)
  [2330] Update - Automatic feeds to Twitter - (2009-08-09)
  [2324] What search terms FAIL to bring visitors to our site, when they should? - (2009-08-05)
  [2137] Reaching the right people with your web site - (2009-04-23)
  [2107] How to tweet automatically from a blog - (2009-03-28)
  [2106] Learning to Twitter / what is Twitter? - (2009-03-28)
  [2065] Static mirroring through HTTrack, wget and others - (2009-03-03)
  [2045] Does robots.txt actually work? - (2009-02-16)
  [2019] Baby Caleb and Fortune City in your web logs? - (2009-01-31)
  [1984] Site24x7 prowls uninvited - (2009-01-10)
  [1982] Cooking bodies and URLs - (2009-01-08)
  [1971] Telling Google which country your business trades in - (2009-01-02)
  [1969] Search Engines. Getting the right pages seen. - (2009-01-01)
  [1793] Which country does a search engine think you are located in? - (2008-09-11)
  [1344] Catching up on indexing our resources - (2007-09-10)
  [1029] Our search engine placement is dropping. - (2007-01-11)
  [1015] Search engine placement - long term strategy and success - (2006-12-30)
  [427] The Melksham train - a button is pushed - (2005-08-28)
  [165] Implementing an effective site search engine - (2005-01-01)


Back to
American Circus in Melksham
Previous and next
or
Horse's mouth home
Forward to
Well House - booking through agents
Some other Articles
The first Luas of the morning
Chippenham - Melksham - Trowbridge bus changes next month
New timetables from 28th July - bus routes 271 and 272
Well House - booking through agents
Has your Twitter feed stopped working? Switching to their new API
American Circus in Melksham
Melksham - Flower Town
We not only teach PHP and Python - we teach good PHP and Python Practice!
Is Lua an Object Oriented language?
International Melksham - industry, and beautiful countryside
4759 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2019: 404 The Spa • Melksham, Wiltshire • United Kingdom • SN12 6QL
PH: 01225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/4121_Has ... w-API.html • PAGE BUILT: Sat May 27 16:49:10 2017 • BUILD SYSTEM: WomanWithCat