最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Add latest tweet as pure text on my website? - Stack Overflow

programmeradmin3浏览0评论

I've got an HTML/CSS website and want to add my latest tweet in the footer section, a few notes:

  • I don't like the look of the available twitter widgets on their website

  • I just want something that will show Only my latest tweet as text (just the last one, not several), then I'll go around adding a background and customize the fonts through CSS.

  • I'm still a beginner when it es to web development, so don't have any experience with JQuery/javascripts, so if the solution is done by those I'd really appreciate it if you keep it simple and easy to understand.

I tried following this guide exactly as mentioned in the steps but it didn't work, simply nothing was shown:

Maybe it's an outdated method of doing such thing, I'm not really sure, I don't want this exact method to work, just anything to get the job done.

Any help would be really appreciated guys.

I've got an HTML/CSS website and want to add my latest tweet in the footer section, a few notes:

  • I don't like the look of the available twitter widgets on their website

  • I just want something that will show Only my latest tweet as text (just the last one, not several), then I'll go around adding a background and customize the fonts through CSS.

  • I'm still a beginner when it es to web development, so don't have any experience with JQuery/javascripts, so if the solution is done by those I'd really appreciate it if you keep it simple and easy to understand.

I tried following this guide exactly as mentioned in the steps but it didn't work, simply nothing was shown:

http://www.webdesigndev./programming/how-to-display-your-last-tweet-using-javascript-and-the-twitter-api

Maybe it's an outdated method of doing such thing, I'm not really sure, I don't want this exact method to work, just anything to get the job done.

Any help would be really appreciated guys.

Share Improve this question asked Sep 1, 2012 at 6:11 user1594603user1594603 1912 gold badges5 silver badges12 bronze badges 1
  • 1 If you haven't already looked, you should check out the official Twitter API documentation at dev.twitter./docs/api – Ian Hunter Commented Sep 1, 2012 at 6:24
Add a ment  | 

2 Answers 2

Reset to default 1

This might help you. Go into your editor and replace the "" from what the source code you copy is using and replace it with real "". On all 3 lines

Got it to work for me

Just add this to your website on the place you need it:

<div id=”twitter_update_list”>
  <script type=”text/javascript” src=”http://twitter./javascripts/blogger.js”></script>
  <script type=”text/javascript” src=”http://twitter./statuses/user_timeline/[yourusername].json?callback=twitterCallback2&count=1″></script>
</div>
发布评论

评论列表(0)

  1. 暂无评论