Information Resources
Twitter API Update Causes WordPress Widget Problem
WordPress siteholders that are using a Twitter widget that requires blogger.js
, might want to consider the following link:
https://dev.twitter.com/docs/api/1/get/statuses/user_timeline
which reads:
Deprecation notice!
Version 1 of the API is now deprecated. This document may describe an outdated version of the API. Please move to Version 1.1 of the API as soon as possible.
This script used to return a JSON object of recent tweets on a user timeline.
A quick fix would be to find the line in your widget (typically a PHP file) that makes a browser request to this URL and update it accordingly to the new API (v1.1).
For example, if your Twitter username is “era404” you would find:
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/era404.json?callback=twitterCallback2&count=4"></script>
And replace it with:
<script type="text/javascript" src="https://api.twitter.com/1/statuses/user_timeline.json?callback=twitterCallback2&screen_name=era404&count=4"></script>
The callback may be named something different, depending on the plugin in use, however this is how the function is called when using blogger.js
.
Permalink: https://www.era404.com/info/update-to-twitter-api/