{"id":367,"date":"2012-02-08T22:14:00","date_gmt":"2012-02-08T22:14:00","guid":{"rendered":"http:\/\/wobable.com\/?p=367"},"modified":"2012-02-08T22:18:11","modified_gmt":"2012-02-08T22:18:11","slug":"add-some-but-not-all-of-your-tweets-to-your-website","status":"publish","type":"post","link":"https:\/\/wobable.com\/?p=367","title":{"rendered":"Add some (but not all) of your tweets to your website&#8230;"},"content":{"rendered":"<p>Ever wondered\u00a0why you ocasionally see\u00a0people add #Yam, #In or #FB\u00a0to the end of their tweets? The reason is that they have set up their other social networks to post tweets as their status updates on\u00a0<a title=\"Linking Twitter to Yammer\" href=\"http:\/\/blog.yammer.com\/blog\/2009\/03\/yammer-integrates-with-twitter.html\" target=\"_blank\">Yammer<\/a>, <a title=\"How to link Twitter with LinkedIn\" href=\"http:\/\/learn.linkedin.com\/twitter\/\" target=\"_blank\">LinkedIn<\/a>\u00a0and <a title=\"Use IFTTT to selectively post Tweets to Facebook\" href=\"http:\/\/ifttt.com\/recipes\/205\" target=\"_blank\">Facebook<\/a>\u00a0(click each of those network names for a way to do it).<\/p>\n<p>If you are lazy, or have lots of friends who are still to discover Twitter, this can be a useful shortcut to having to update multiple accounts (though I dislike the use of Hashtags on non-twitter networks on principle!).<\/p>\n<p>ANYWAY. A friend of mine asked if she could have the same effect on her website. What she wanted to do was use an appropriate hashtag and the tweets would appear on her website. Any tweets that didn&#8217;t have the hashtag (conversations\u00a0for instance) wouldn&#8217;t appear on the website.<\/p>\n<p>It&#8217;s surprisingly easy to do, and I am surprised I have not seen it done more often&#8230;<\/p>\n<h2>Twitter widgets are your friend<\/h2>\n<p>Twitter has a whole series of widgets that you can make use of on your website here: <a href=\"https:\/\/twitter.com\/about\/resources\/widgets\/\">https:\/\/twitter.com\/about\/resources\/widgets\/<\/a>.<\/p>\n<p>The obvious one to show off your tweets on your website is the profile widget &#8211; but that shows every tweet you make (including the banal ones!). Instead we are going to play with the search widget. It is fairly easy to customise, so here is my first attempt &#8211; this is searching for the term &#8220;#wob&#8221; (short for wobable.com):<\/p>\n<p>&nbsp;<\/p>\n<p><script charset=\"utf-8\" type=\"text\/javascript\" src=\"http:\/\/widgets.twimg.com\/j\/2\/widget.js\"><\/script><script type=\"text\/javascript\">\/\/ <![CDATA[\n new TWTR.Widget({   version: 2,   type: 'search',   search: '#wob',   interval: 30000,   title: 'Selected Tweets from',   subject: '@Wobable',   width: 'auto',   height: 300,   theme: {     shell: {       background: '#8ec1da',       color: '#ffffff'     },     tweets: {       background: '#ffffff',       color: '#444444',       links: '#1985b5'     }   },   features: {     scrollbar: false,     loop: true,     live: true,     behavior: 'default'   } }).render().start();\n\/\/ ]]><\/script><\/p>\n<p>&nbsp;<\/p>\n<p>The problem is that this shows any tweet that mentions &#8220;#wob&#8221; &#8211; not just my own. My friend was trying to get around this with a long (and mildly obscure hashtag) that no-one else would be likely to use. The downside of that approach is that it is obvious to anyone visiting the website what you are trying to do &#8211; so you are leaving yourself open to people hijacking\u00a0the tweetstream on\u00a0the\u00a0site with negative messages about\u00a0your brand. What we need is a better search term. We need to only display tweets from @Wobable that mention &#8220;#wob&#8221;. Luckily there is an <a title=\"Advanced Search Terms in Twitter\" href=\"https:\/\/support.twitter.com\/articles\/71577\" target=\"_blank\">awesome help file<\/a> on Twitter about advanced search terms. In this case the search term we need is: <code>from:wobable #wob<\/code>:<\/p>\n<p>&nbsp;<br \/>\n<script charset=\"utf-8\" type=\"text\/javascript\" src=\"http:\/\/widgets.twimg.com\/j\/2\/widget.js\"><\/script><script type=\"text\/javascript\">\/\/ <![CDATA[\nnew TWTR.Widget({\n  version: 2,\n  type: 'search',\n  search: 'from:wobable #wob',\n  interval: 30000,\n  title: 'Selected Tweets from',\n  subject: '@Wobable',\n  width: 'auto',\n  height: 300,\n  theme: {\n    shell: {\n      background: '#8ec1da',\n      color: '#ffffff'\n    },\n    tweets: {\n      background: '#ffffff',\n      color: '#444444',\n      links: '#1985b5'\n    }\n  },\n  features: {\n    scrollbar: false,\n    loop: true,\n    live: true,\n    behavior: 'default'\n  }\n}).render().start();\n\/\/ ]]><\/script><br \/>\n&nbsp;<\/p>\n<p>So there we have it. Enjoy it, keep the hashtag short &#8211; #web seems like a suitable tag &#8211; and make sure you include the &#8220;from:&#8221;.<\/p>\n<p>Let me know in the comments if you found this helpful!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever wondered\u00a0why you ocasionally see\u00a0people add #Yam, #In or #FB\u00a0to the end of their tweets? The reason is that they have set up their other social networks to post tweets as their status updates on\u00a0Yammer, LinkedIn\u00a0and Facebook\u00a0(click each of those network names for a way to do it). If you are lazy, or have lots &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/wobable.com\/?p=367\"> <span class=\"screen-reader-text\">Add some (but not all) of your tweets to your website&#8230;<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[98],"tags":[138,140,139,153,137],"class_list":["post-367","post","type-post","status-publish","format-standard","hentry","category-social-media","tag-advanced-search","tag-hashtag","tag-link","tag-twitter","tag-website"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p2c0fT-5V","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/wobable.com\/index.php?rest_route=\/wp\/v2\/posts\/367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wobable.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wobable.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wobable.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wobable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=367"}],"version-history":[{"count":7,"href":"https:\/\/wobable.com\/index.php?rest_route=\/wp\/v2\/posts\/367\/revisions"}],"predecessor-version":[{"id":372,"href":"https:\/\/wobable.com\/index.php?rest_route=\/wp\/v2\/posts\/367\/revisions\/372"}],"wp:attachment":[{"href":"https:\/\/wobable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wobable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wobable.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}