我将我最新的推文拉到我的主页上,但我不知道我需要添加什么来拉动头像。
任何想法?
<script src="http://twitterjs.googlecode.com/svn/trunk/src/twitter.min.js"></script>
<script type="text/javascript">
getTwitters('tweet', {
id: 'gezzamondo',
count: 1,
enableLinks: true,
ignoreReplies: true,
clearContents: true,
template: '"%text%" <a href="http://twitter.com/%user_screen_name%/statuses/%id%/">%time%</a>'
});
答案 0 :(得分:1)
如果您使用
%user_profile_image_url%
在模板变量中,应该得到你的头像。
所以它会是
template: '"%text%" <img src="%user_profile_image_url%" height="" width="" /><a href="http://twitter.com/%user_screen_name%/statuses/%id%/">%time%</a>'
更多信息请参见此处,