user1869585
user1869585

Reputation: 655

Embedding Twitter Feed on a Website

I am trying to embed the latest tweets from a Twitter account on a website - www.CochlearImplantOnline.com on the sidebar. I am using this code:

<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://api.twitter.com/1/statuses/user_timeline/cochlearimplant.json?callback=twitterCallback2&count=3"></script>

When I implemented this code, it doesn't show up at all. What could I be doing wrong?

Upvotes: 2

Views: 5467

Answers (2)

Raja Malakar
Raja Malakar

Reputation: 13

Go to publish.twitter.com and put your twitter URL into the search box eg. https://twitter.com/Twitter Then you get your embedded code for your twitter feed. You can also customize.

Upvotes: 1

Mary Camacho
Mary Camacho

Reputation: 470

This doesn't look like the code from the twitter widget for embedding a feed. Are you sure you copied it from that widget? This is what it looks like when I copy the widget embed code on my account:

    <a class="twitter-timeline" href="https://twitter.com/marycamacho" data-widget-id="275430111547887616">Tweets by @marycamacho</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

Upvotes: 3

Related Questions