• I’m trying to embed this twitter widget directly into a template I’m creating:
    http://twitter.com/about/resources/widgets/widget_profile

    Normally this is an easy matter. I’m out of ideas. Any suggestions?

    <script src="http://widgets.twimg.com/j/2/widget.js"></script>
    <script>
    new TWTR.Widget({
      version: 2,
      type: 'profile',
      rpp: 4,
      interval: 6000,
      width: 250,
      height: 300,
      theme: {
        shell: {
          background: '#333333',
          color: '#ffffff'
        },
        tweets: {
          background: '#000000',
          color: '#ffffff',
          links: '#4aed05'
        }
      },
      features: {
        scrollbar: false,
        loop: false,
        live: false,
        hashtags: true,
        timestamp: true,
        avatars: false,
        behavior: 'all'
      }
    }).render().setUser('TWITTER_NAME').start();
    </script>
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Can you explain the problem you’re having in more detail, and better yet, provide a link to the site-in-progress? Do you get an error message? What happens exactly?

    Thread Starter estevancarlos

    (@estevancarlos)

    Absolutely nothing happens really. the site is in maintenance mode for a client right now so I can’t show it. Here’s an error message from console through Chrome:

    Resource interpreted as script but transferred with MIME type application/json.
    
    twitter.com/statuses/user_timeline/fathertigersays.json?callback=twitterCallback2&count=10:-1Resource interpreted as script but transferred with MIME type application/json.

    I was under the impression I should be able to simply paste that widget within the HTML of my template?

    Moderator Kathryn Presner

    (@zoonini)

    Is it possible it was just the Twitter API having one of its all-too-frequent spasms? I would try again tomorrow and see.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can't embed Twitter widget’ is closed to new replies.