4

How do I go about calling the twitter API in a way similar to http://socialmedia.duke.edu/#stayconnected

We are looking to do the same type of thing. I cannot figure out what is calling to twitter though in the code.

I can supply any needed details that you would need. I am using Wordpress but just using HTML in a page at this moment.

So how do I see the hashtag searches for said twitter account, and then the actual tweets by said account

Cœur
  • 37,241
  • 25
  • 195
  • 267
Matthew Snider
  • 129
  • 2
  • 8

1 Answers1

6

bluedevilsYou just need to use Twitter's free javascript API widget. It's very easy to use the wizard: http://twitter.com/goodies/widgets

Here's something similar to Duke's:

<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 8,
  interval: 6000,
  width: 700,
  height: 300,
  theme: {
    shell: {
      background: '#ffffff',
      color: '#b364b3'
    },
    tweets: {
      background: '#ffffff',
      color: '#ffffff',
      links: '#338012'
    }
  },
  features: {
    scrollbar: false,
    loop: false,
    live: true,
    hashtags: true,
    timestamp: true,
    avatars: true,
    behavior: 'default'
  }
}).render().setUser('bluedevils').start();
</script>
jeph perro
  • 6,242
  • 26
  • 90
  • 124
  • Can I assume I just call that script where I want it to show up? – Matthew Snider Aug 18 '10 at 20:32
  • 1
    Exactly. You can put the first script tag in , but put the second script tag where you want it to appear. You can adjust the values of width and height to control how it appears. – jeph perro Aug 19 '10 at 16:23