17 Replies Latest reply on Nov 29, 2012 8:24 AM by joel_pau

    Twitter API and Edge Animate not working

    marer1976 Adobe Community Professional



      I have watched great video about using Twitter API in Edge Animate on Adobe TV and I thought I would give it a go.


      I followed the steps and unfortunately it's not working for me.... Not even an error message when tested in a browser, nothing...


      Here's my code for compositionReady:


      try {

          // Read tweets, set number of tweets to display

          var 0 = { username: "adobeedge", count: 4};

          var twitterUrl = "http://api.twitter.com/1/statuses/user_timeline.json?screen_name="+o.username+"&count="+o.count;

          // AJAX function for communicating to Twitter API

          $.ajax( {url: twitterUrl, dataType: "jsonp"} )

              .success(function(data) {


              $.each(data, function(index, item) {

                  var itemRenderer = sym.createChildSymbol("itemRenderer", "tweetContainer");

                  itemRenderer.$("tweet").html( item.text );

                  itemRenderer.$("image").css("background-image", "url("+item.user.profile_image_url+")");




      catch(error) {

              alert("Error: "+error.toString());




      Any suggestions?