Hi Omid,
A working twitter feed widget is waiting for approval right now for publication in the app store. That one should work..
It should be in the app store within a few days. You can alreay get it from Github: https://github.com/appronto/TwitterFeedWidget
UPDATE: You can download it from the app store at this time.
You need to change the code to:
window.twttr = (function (d, s, id) { var t, js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src= "https://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); return window.twttr || (t = { _e: [], ready: function (f) { t._e.push(f) } }); }(document, "script", "twitter-wjs"));
Remove the script tags.
You will also need a html element to add the twitter feed to the html dom.
Here's an example:
Place this in a html snippet:
<a class="twitter-timeline" href="https://twitter.com/TwitterDev" data-widget-id="532511052836007936">Tweets by @TwitterDev</a>
Then in another snippet with the javascript and set to javascript:
!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");
Hi Omid, just remove the <script> </script> tags in your JavaScript snippet and it should be showing on the page.
So in your HTML snippet you will have this:
And then underneath in your JavaScript snippet you will have this:
!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");