 <p>You can use this code as well to fetch your twitter feeds to any webpage. Please try by putting it to server (because some times i saw problem of not fetching feeds on local machine, but don't worry it would work on server - say with .php file extension)</p> <pre><code> &lt;script&gt; var twitterFetcher=function(){function t(d){return d.replace(/&lt;b[^&gt;]*&gt;(.*?)&lt;\/b&gt;/gi,function(c,d){return d}).replace(/class=".*?"|data-query-source=".*?"|dir=".*?"|rel=".*?"/gi,"")}function m(d,c){for(var f=[],e=RegExp("(^| )"+c+"( |$)"),g=d.getElementsByTagName("*"),b=0,a=g.length;b&lt;a;b++)e.test(g[b].className)&amp;&amp;f.push(g[b]);return f}var u="",j=20,n=!0,h=[],p=!1,k=!0,l=!0,q=null,r=!0;return{fetch:function(d,c,f,e,g,b,a){void 0===f&amp;&amp;(f=20);void 0===e&amp;&amp;(n=!0);void 0===g&amp;&amp;(g=!0);void 0===b&amp;&amp;(b=!0); void 0===a&amp;&amp;(a="default");p?h.push({id:d,domId:c,maxTweets:f,enableLinks:e,showUser:g,showTime:b,dateFunction:a}):(p=!0,u=c,j=f,n=e,l=g,k=b,q=a,c=document.createElement("script"),c.type="text/javascript",c.src="//cdn.syndication.twimg.com/widgets/timelines/"+d+"?&amp;lang=en&amp;callback=twitterFetcher.callback&amp;suppress_response_codes=true&amp;rnd="+Math.random(),document.getElementsByTagName("head")[0].appendChild(c))},callback:function(d){var c=document.createElement("div");c.innerHTML=d.body;"undefined"=== typeof c.getElementsByClassName&amp;&amp;(r=!1);var f=d=null,e=null;r?(d=c.getElementsByClassName("e-entry-title"),f=c.getElementsByClassName("p-author"),e=c.getElementsByClassName("dt-updated")):(d=m(c,"e-entry-title"),f=m(c,"p-author"),e=m(c,"dt-updated"));for(var c=[],g=d.length,b=0;b&lt;g;){if("string"!==typeof q){var a=new Date(e[b].getAttribute("datetime").replace(/-/g,"/").replace("T"," ").split("+")[0]),a=q(a);e[b].setAttribute("aria-label",a);if(d[b].innerText)if(r)e[b].innerText=a;else{var s=document.createElement("p"), v=document.createTextNode(a);s.appendChild(v);s.setAttribute("aria-label",a);e[b]=s}else e[b].textContent=a}n?(a="",l&amp;&amp;(a+='&lt;div class="user"&gt;'+"&lt;/div&gt;"),a+='&lt;p class="tweet"&gt;'+t(d[b].innerHTML)+"&lt;/p&gt;",k&amp;&amp;(a+='&lt;p class="timePosted"&gt;'+e[b].getAttribute("aria-label")+"&lt;/p&gt;")):d[b].innerText?(a="",l&amp;&amp;(a+='&lt;p class="user"&gt;'+f[b].innerText+"&lt;/p&gt;"),a+='&lt;p class="tweet"&gt;'+d[b].innerText+"&lt;/p&gt;",k&amp;&amp;(a+='&lt;p class="timePosted"&gt;'+e[b].innerText+"&lt;/p&gt;")):(a="",l&amp;&amp;(a+='&lt;p class="user"&gt;'+f[b].textContent+ "&lt;/p&gt;"),a+='&lt;p class="tweet"&gt;'+d[b].textContent+"&lt;/p&gt;",k&amp;&amp;(a+='&lt;p class="timePosted"&gt;'+e[b].textContent+"&lt;/p&gt;"));c.push(a);b++}c.length&gt;j&amp;&amp;c.splice(j,c.length-j);d=c.length;f=0;e=document.getElementById(u);for(g="&lt;ul&gt;";f&lt;d;)g+="&lt;li&gt;"+c[f]+"&lt;/li&gt;",f++;e.innerHTML=g+"&lt;/ul&gt;";p=!1;0&lt;h.length&amp;&amp;(twitterFetcher.fetch(h[0].id,h[0].domId,h[0].maxTweets,h[0].enableLinks,h[0].showUser,h[0].showTime,h[0].dateFunction),h.splice(0,1))}}}(); /* * ### HOW TO CREATE A VALID ID TO USE: ### * Go to www.twitter.com and sign in as normal, go to your settings page. * Go to "Widgets" on the left hand side. * Create a new widget for what you need eg "user timeline" or "search" etc. * Now go back to settings page, and then go back to widgets page, you should * see the widget you just created. Click edit. * Now look at the URL in your web browser or see the script generated below the widget, you will see a long number like this: * 345735908357048478 in url or data-widget-id="345095893361512448" in the generated code * Use this as your ID below instead! */ /*************** * twitterFetcher.fetch('Put your twitter id here', 'ID of the container e.g id tweets of container div') */********************* twitterFetcher.fetch('345095893361512448', 'tweets', 5, true); function dateFormatter(date) { return date.toTimeString(); } &lt;/script&gt; &lt;div id="tweets" style="width: 200px;float:left;overflow:hidden"&gt;&lt;/div&gt; </code></pre>