jquery.tweet.js plugin is not working, how to show tweets

前端 未结 6 787
無奈伤痛
無奈伤痛 2020-12-30 16:09

I have used this plugin on my website to display tweets, but even the plugin site has the problem:

http://coda.co.za/content/projects/jquery.twitter/

Code:

6条回答
  •  攒了一身酷
    2020-12-30 17:11

    If you don't want to use PHP, and just want to use Javascript, then you can use the Javascript library "TweetJS", from www.tweetjs.com

    You can retrieve and display tweets using this library, but you cannot post out tweets, since this requires authentication. Here's an example on how to display tweets from a timeline (to the console):

    TweetJs.ListTweetsOnUserTimeline("PetrucciMusic",
    function (data) {
        console.log(data);
    });
    

提交回复
热议问题