jQuery plugin to put a twitter feed on my site
I want to put the first n entries from my twitter feed on my blog with the usual enhancements:
- Convert URLs to real links
- Remove @ replies
I realize this wouldn't be to开发者_运维问答o difficult to code from scratch with $.getJSON
, but since this sort of thing is so common, I was wondering if there was a neat plugin that would handle everything for me.
You should check out jQuery plugin for Twitter.
I ended up using Tweet, with a few small modifications.
In particular, I added an option to filter @ replies and implemented it like this:
// in the $.each loop over the JSON results
if (s.ignore_at_replies === true && item.in_reply_to_user_id !== null) {
return true;
}
Reference: Filter out @replies in a Twitter feed?
There is also jQuery Tweet Rotator. It's not free, but only $5.
精彩评论