Want amazing, share-able, conservative quotes? Check out QuotableRight on Twitter, Facebook, or the web.

Please Don’t Auto-Publish Everything You Do On Facebook To Twitter

As I was browsing my Twitter list of North Carolina Senators I noticed an almost universal bad habit. Senators are automatically publishing every action they take on Facebook to their Twitter feed. I can understand why they thought this was a good idea. They get publish content once on a platform they are more familiar with, and it will automagically appear on a platform they, more than likely, wouldn’t otherwise use, further spreading their political message.

It’s a good theory, but in practice it leads to weird formatting and cut offs,

tweets with absolutely no context

shared photos that are missing the all-important photo part

and spammy, duplicated messaging.

Fully automated accounts have an additional, unseen flaw: they’re usually never checked. Twitter is an interactive platform. If you never log in, you can’t respond to anything and aren’t truly participating.

Automation isn’t inherently evil, but there are much better ways to accomplish it. I will detail some of them in future posts. In the meantime, most politicians shouldn’t be logging into their accounts directly anyway. Instead, use a social media management suite to keep posts on appropriate platforms. Hootsuite is free for up to three profiles, and though it’s far from perfect, it’s better than the status quo.

Use Yahoo Pipes to Shorten Any RSS Feed’s URLs with Yourls

Note: this post assumes you already have a working Yourls installation on your webserver. If you don’t, you can download it here. If you need help setting up Yourls, let me know on Twitter.

Note: If you don’t actually care how this is done, I’ve published a pipe here that will allow you to drop in your Yourls endpoint, secret (found on the tools page), and feed URL. The pipe will output a new feed with the links replaced by ones shortened with your URL shortener. However, I don’t recommend this method as it may expose your Yourls secret to the internet allowing anyone to use your shortener’s API. Instead, you should clone this pipe and follow the instructions below to hard code your secret.

This project started because IFTTT, one of my other favorite internet tools, doesn’t offer native support for any URL shortener other than bitly. Bitly is a great product, and I’ve been using Bitly Pro to shorten URLS with my own domain since I was approved for the beta, but the service has a major downside. It’s popularity means the URLs it generates have become progressively longer, and most of the good keywords have already been taken. Further, its analytics (at least on non-enterprise accounts) really aren’t any better than what Yourls offers and its bookmarklet and browser addons have become unnecessarily complex.

Bitly’s one remaining advantage is built-in, out-of-the-box third party support. At IFTTT, using your Bitly account to shorten links takes a few clicks. Using Yourls required slightly more creativity. To solve this problem, I turned to Yahoo Pipes, a visual programming tool designed to let you grab and process data from the internet.

Screenshot_010115_120047_AM

This pipe first grabs your RSS feed (or feeds), filters any duplicate items, and arranges them in reverse chronological order. Now comes the fun part: using the URL Builder module, the pipe builds a Yourls API call. We then use xpath to fetch the call and extract the shortened URL. Once that’s been done, the pipe rebuilds the feed, substituting the original long URL for the shortened replacement. After saving and running the pipe, you’ll be able to get the results as a new RSS feed that will update itself anytime new content is added to the original feed.

To use this with your own Yourls instance, you’ll first need to clone this pipe. Then edit the source of your clone. Add your RSS feed URL(s) to the fetch feed module. Enter your yourls endpoint in the base box of the URL builder (Note: be sure to leave off the trailing slash, e.g. Use http://sho.rt instead of http://sho.rt/). Finally, enter your Yourls secret into the private text input’s default field. Save the pipe and run it to generate your new RSS feed.

If you like the idea of using your own short domain, but you’d rather have someone else set up the server, send me a note on twitter, and I’ll be happy to help you out.