I recently gave a keynote at CapitalCamp in DC about Improving UX Through Front End Performance. I set up my presentation using Keynote ahead of time to automatically tweet relevant links and quotes from my Twitter account as I went from slide to slide. This was awesome for a few reasons:
- By seeing what was retweeted after the presentation, I was able to get a good sense of what pieces of information resonated the most with folks.
- It opened up a channel of communication with my audience that hadn’t been there before. People knew exactly how to reach out to me with questions during and after my presentation. They didn’t have to wonder if they should email me, hunt down my portfolio, etc.
- I got great feedback on how the whole presentation went. I had few in-person conversations at the conference so I was thrilled to see all of the feedback on Twitter.
- It looked super fancy.
Most of my instructions below come from the above video with a few modifications that will allow you to test tweet from your presentation, then learn how to switch to your real Twitter account.
Set up twurl
- In Terminal, type
sudo gem i twurl --source http://rubygems.org
- Enter your system admin password (your OSX password)
Now you’ve got twurl, which will allow your Mac to tweet. It’s important to use twurl because of the recent changes that Twitter made to their API authentication requirements. Twurl can grant an access token for your Twitter application (next step) and authenticate your tweets.
Register a Twitter application
- Using your main Twitter account, visit http://dev.twitter.com/apps/new to register a new application so you can tweet.
- Name your application with a unique name, and you can use the same for the description field.
- For the website, make sure you include “http://” in what you enter (blog, homepage, etc.)
- Agree to the terms, complete the captcha and create your application.
- Click “Settings” on the tabs under your application name.
- Change “Application Type” to “Read and Write”.
- Click “Update this Twitter application’s settings”.
Congrats! You have your own Twitter application that will allow you to tweet from your Mac. Next, we need to set up your Mac to play nicely with it. Keep that application window open in the background.
Create your test Twitter account
Because you will want to play around with Keynote and tweeting before you take it to your real live Twitter account, you should create a testing playground. Create a new account and log in (I used a different browser so I could go back and forth between my real one and my test one). I recommend making the account private so you don’t accidentally alert anyone you @ or who follows your hashtag.
Connect your application with your test Twitter account
- Find your application’s consumer key and secret key back in your original browser. Edit the following and replace the_key and the_secret with that information:
twurl authorize --consumer-key the_key --consumer-secret the_secret
- Copy that line (starting with “twurl…”) and your keys into Terminal, and press return.
- Terminal will give you a long web address starting with “https://api…” Copy this entire URL and paste it into your browser where your test Twitter account is logged in.
- The browser will give you a pin code, as you’ve just connected your application with your test account. Copy the pin and paste it into Terminal. Hit return.
You now have your Mac working with your test Twitter account. Congratulations!
Install Keynote Tweet 2
- Download Keynote Tweet 2
- Unzip the file and copy Keynote Tweet 2 to your applications directory.
- Run it and enter any hashtag you wish to use.
- In Keynote, put any text you’d like to tweet in between [twitter] and [/twitter] tags within the presenter notes area. When you play that slide in your presentation, it will tweet from your test account.
- If you run through the slides too fast, it won’t tweet. Give it a few seconds per slide to tweet before going to the next.
- Add all of the text you want, and run through the entire presentation. Make sure that all the tweets go through. If they don’t, check your character length. I found that I needed to count my username’s character length in the total tweet.
Switch to your real Twitter account
- When you’re ready to switch to your real Twitter account, you’ll need to connect your application to your real Twitter username. Run through the steps in “Connect your application with your test Twitter account” above, but when you copy the “https://api…” link into your browser, make sure it’s the browser where you’re logged in to your real Twitter account.
- Next, you’ll need to change the default profile that you tweet with from within twurl. The first time you authorize an application, twurl stores your access token for this Twitter account as the default. To see what user names have been authorized for your application, type
twurl accountsin Terminal.
- You’ll see your test and real Twitter usernames and the application key for each. Notice that your test username is marked as the default. To change the default type
twurl set default YOURREALTWITTERACCOUNTin Terminal, substituting your real Twitter username there.
I highly recommend testing the entire presentation a few times to make sure that your tweets make sense and have a short enough character count (especially if you’re adding a hashtag automatically).
- Not Your Father’s Testing Department: The Benefits Of Automated TestingNot Your Father’s Testing Department: The Benefits Of Automated Testing
- Video: Make Your Website Run Faster By Cleaning Your HTML & CSSVideo: Make Your Website Run Faster By Cleaning Your HTML & CSS
- Debunking 5 Myths About Implementing Configuration ManagementDebunking 5 Myths About Implementing Configuration Management
- Open For Everyone: Why Web Accessibility Is ImportantOpen For Everyone: Why Web Accessibility Is Important
- Dyn Client Focus: Stackpop Will Manage Your Infrastructure NeedsDyn Client Focus: Stackpop Will Manage Your Infrastructure Needs