MichaelCorbett says: My aim with the
FossyTweets page was to allow community members to add some code that would excerpt their last 5 tweets onto this page. It would allow community members to come to this page and see all the tweets in overview with a view for them to decide who they wanted to "follow" on twitter. Unfortunately the code snippet that I copied to do this only allows for one person's tweets to be shown on a page and so it was not possible to have a "overview of tweets" page. What I have done for now is to make the page list the twitter user "nextwiki" but if there is anyone with the java/twitter know-how to correct my simple javascript snippet (see below) please let me know and I'll try to ressurect the concept.
Code Snippet I used
---++ Your name here
%TWISTY{
showlink="Tweet to me!"
hidelink="Twut up"
remember="on"
}%
<div id="twitter_div">
<ul id="twitter_update_list"></ul>
</div>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/YOUR USER NAME HERE.json?callback=twitterCallback2&count=5"></script>
Why not [[http://twitter.com/YOUR USER NAME HERE][follow me]] on Twitter?
%ENDTWISTY%
Ideas, comments, suggestions: please write them here. Sign and date your comments if you don't mind.
The referenced blogger.js script hardcodes the ID of the ul element to which the output will be written. A modified version of the callback can be written so the ID of the ul element to be customized. I've written a prototype but I seem to be running up against
this bug. --
IsaacLin - 02 Dec 2008 - 03:04
I have attached my Javascript file to
FossyTweetsFetchStatus and created a temporary sample page,
FossyTweets that makes use of it. Note that the way the
bug I seem to be encountering manifests itself, the page seems to work the very first time it is loaded, and then subsequent loads will fail. This seems to be due to a caching problem by Twitter. (Technical details: The initial response seems to be cached with the callback instead of just the JSON data structure, so the subsequent response has nested callbacks.) --
IsaacLin - 03 Dec 2008 - 15:06
The bug report says the bug has been resolved, and it seems to work, so I've replaced the
FossyTweets page with the implementation from the sandbox version. Note I intentionally did not put a table of contents on the page: with all of the sections closed, I thought the headings were already easily skimmed, and the table of contents would look redundant. I realize that with some sections left open, a table of contents would be more useful. I'm not sure which is the more likely use case: I believe I would tend to close a section after reading it, as this reduces the amount of scrolling I need to do on the page. --
IsaacLin - 04 Dec 2008 - 00:42
Isaac, thanks very much! There’s a virtual beer in this for you.
--
MichaelCorbett - 4 December 2008 - 10:29
This wiki app seems to be out of order. I can't see any tweet updates at all. Anybody able to fix?
--
MichaelDaum - 11 Nov 2010
TwitterBuzz seems to do just fine.
--
MichaelDaum - 11 Nov 2010
Twitter is no more so I'll remove any links to it from foswiki.org.
--
MichaelDaum - 18 Sep 2023