{"id":69,"date":"2009-10-22T17:22:58","date_gmt":"2009-10-22T16:22:58","guid":{"rendered":"http:\/\/blogs.oucs.ox.ac.uk\/adamweblearn\/?p=69"},"modified":"2012-10-18T12:39:56","modified_gmt":"2012-10-18T11:39:56","slug":"displaying-twitter-feeds-in-a-weblearn-page","status":"publish","type":"post","link":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/2009\/10\/displaying-twitter-feeds-in-a-weblearn-page\/","title":{"rendered":"Displaying Twitter feeds in a WebLearn page"},"content":{"rendered":"<p>This page was updated on 20 October 2012<\/p>\n<p>To display Tweets within an HTML page do the following. At the place where you want the Tweets to appear, switch to the <em>Source<\/em> view of the HTML page (using the button on the top row of the WYSIWYG) and paste in the following:<\/p>\n<pre> &lt;ul id=\"twitter_update_list\"&gt;\r\n<span>\u00a0<\/span>   &lt;li&gt;&amp;nbsp;&lt;\/li&gt;\r\n &lt;\/ul&gt;<\/pre>\n<p>Once this is done, one must add some JavaScript to the page &#8211; this code will fetch the Tweets from Twitter and will embed them dynamically onto the page. Paste the following JavaScript onto your page and then change <em>twit_u<\/em> to reflect your actual Twitter username.<\/p>\n<pre>&lt;script\r\n  type=\"text\/javascript\"\r\n  src=\"https:\/\/twitter.com\/javascripts\/blogger.js\"&gt;\r\n&lt;\/script&gt;\r\n&lt;script\r\n  type=\"text\/javascript\"\r\n  src=\"https:\/\/api.twitter.com\/1\/statuses\/user_timeline\/twit_u.json?callback=twitterCallback2&amp;count=5\"&gt;\r\n&lt;\/script&gt;<\/pre>\n<p>You can also (optionally) place a link directly to your feed on Twitter itself:<\/p>\n<pre>&lt;a href=\"http:\/\/twitter.com\/twit_u\" target=\"_blank\"&gt;follow me on Twitter&lt;\/a&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This page was updated on 20 October 2012 To display Tweets within an HTML page do the following. At the place where you want the Tweets to appear, switch to the Source view of the HTML page (using the button &hellip; <a href=\"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/2009\/10\/displaying-twitter-feeds-in-a-weblearn-page\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[90,105],"tags":[206,29],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-sakai","category-weblearn","tag-content","tag-rss"],"_links":{"self":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":15,"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":72,"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/posts\/69\/revisions\/72"}],"wp:attachment":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}