
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>brandontreb.com &#187; Twitter</title>
	<atom:link href="http://brandontreb.com/category/nerdyness/twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://brandontreb.com</link>
	<description>Code, Nerdyness, and Nonsense</description>
	<lastBuildDate>Wed, 07 Jul 2010 00:23:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Test Version of TweetPress 3.0</title>
		<link>http://brandontreb.com/test-version-of-tweetpress-3-0/</link>
		<comments>http://brandontreb.com/test-version-of-tweetpress-3-0/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 00:23:24 +0000</pubDate>
		<dc:creator>brandontreb</dc:creator>
				<category><![CDATA[Nerdyness]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[tweetpress]]></category>

		<guid isPermaLink="false">http://brandontreb.com/?p=838</guid>
		<description><![CDATA[So WordPress 3.0 has broken Tweetpress for many people.  If you are daring, willing to help, and experiencing issues with Tweetpress, please download the 3.0 test build of Tweetpress and install it on your WordPress blog. Here are your next steps after installation: Make sure you add your Twitter username and Password to the Tweetpress [...]]]></description>
			<content:encoded><![CDATA[<p>So WordPress 3.0 has broken Tweetpress for many people.  If you are daring, willing to help, and experiencing issues with Tweetpress, please download the 3.0 test build of Tweetpress and install it on your WordPress blog.</p>
<p>Here are your next steps after installation:</p>
<ol>
<li>Make sure you add your Twitter username and Password to the Tweetpress settings in your wp-admin and save it</li>
<li>Attempt to post a photo to Twitter using Twitter for iPhone</li>
<li>If it works, you win, let me know, if not do this:
<ol>
<li>go back to the tweetpress admin in wp-admin</li>
<li>click the log link at the very bottom</li>
<li>copy the text and email it to brandontreb [at] gmail [dot] com with the subject &#8220;Tweetpress Log&#8221;</li>
</ol>
</li>
</ol>
<p>This will really help me troubleshoot the issues that everyone has been having.</p>
<p>Thanks!</p>
<p><a href="http://brandontreb.com/wp-content/uploads/2010/07/tweetpress.zip">Download Tweetpress Test Build 3.0</a></p>
]]></content:encoded>
			<wfw:commentRss>http://brandontreb.com/test-version-of-tweetpress-3-0/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Tutorial &#8211; Tweetpress Integration With Tweetie</title>
		<link>http://brandontreb.com/tutorial-tweetpress-integration-with-tweetie/</link>
		<comments>http://brandontreb.com/tutorial-tweetpress-integration-with-tweetie/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 02:35:21 +0000</pubDate>
		<dc:creator>brandontreb</dc:creator>
				<category><![CDATA[Nerdyness]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[image service api endpoint]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[tweetie]]></category>
		<category><![CDATA[tweetpress]]></category>
		<category><![CDATA[twitpic]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress plugin]]></category>

		<guid isPermaLink="false">http://brandontreb.com/?p=536</guid>
		<description><![CDATA[Tweetpress now supports the hugely popular iPhone Twitter client Tweetie.  Here are the steps to set up TweetPress and Tweetie.]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://brandontreb.com/wp-content/uploads/2009/10/tweetiei2-large.png"><img class="alignnone size-full wp-image-544" title="tweetiei2-large" src="http://brandontreb.com/wp-content/uploads/2009/10/tweetiei2-large.png" alt="tweetiei2-large" width="180" height="180" /></a></p>
<p><a href="http://wordpress.org/extend/plugins/tweetpress/">Tweetpress</a> now supports the hugely popular iPhone Twitter client <a href="http://www.atebits.com/tweetie-iphone/">Tweetie</a>.  Here are the steps to set up TweetPress and <a href="http://www.atebits.com/tweetie-iphone/">Tweetie</a>.</p>
<h2>Configure TweetPress</h2>
<ol>
<li>Set you blog permissions.  As of version 2.0.2, Tweetpress requires that your wp-content directory is 777 during install. This is because Tweetpress needs to make a folder to store your images in.  Once this folder is made, you can set the wp-content permissions back to 755.  Just make sure the Tweetpress directory remains 777 (as well as the sub directory). If you change it back, Tweetpress might yell at you but it will still work as long as wp-content/tweetpress is writable (777).  I hope to change this in the future.<br />
<a href="http://brandontreb.com/wp-content/uploads/2009/10/screenshot_03.png"><img class="alignnone size-full wp-image-537" title="screenshot_03" src="http://brandontreb.com/wp-content/uploads/2009/10/screenshot_03.png" alt="screenshot_03" width="427" height="83" /></a></li>
<li><a href="http://wordpress.org/extend/plugins/tweetpress/">Download</a> and install the TweetPress plugin on your WordPress site.</li>
<li>Configure TweetPress.  In your WordPress admin, navigate to Settings -&gt; Tweetpress.
<ol>
<li>Select a page from the drop down for your gallery to appear on.  If you don&#8217;t select a page, Tweetpress will try to use your homepage. You may want to create a separate &#8220;Gallery&#8221; page for the plugin to go on. Note, the &#8220;Posting Requires a WordPress account&#8221; checkbox is not applicable for Tweetie.<br />
<a href="http://brandontreb.com/wp-content/uploads/2009/10/screenshot_02.png"><img class="alignnone size-full wp-image-538" title="screenshot_02" src="http://brandontreb.com/wp-content/uploads/2009/10/screenshot_02.png" alt="screenshot_02" width="428" height="170" /></a></li>
<li>Add your Twitter username</li>
<li>Add your Twitter password</li>
<li>Click &#8220;Save Twitter settings&#8221;<br />
<a href="http://brandontreb.com/wp-content/uploads/2009/10/screenshot_01.png"><img class="alignnone size-full wp-image-539" title="screenshot_01" src="http://brandontreb.com/wp-content/uploads/2009/10/screenshot_01.png" alt="screenshot_01" width="464" height="254" /></a></li>
</ol>
</li>
</ol>
<h2>Configure Tweetie</h2>
<ol>
<li>Open your Tweetie settings<br />
<a href="http://brandontreb.com/wp-content/uploads/2009/10/photo.jpg"><img class="alignnone size-full wp-image-540" title="photo" src="http://brandontreb.com/wp-content/uploads/2009/10/photo.jpg" alt="photo" width="320" height="480" /></a></li>
<li>Tap <strong>Image Service</strong></li>
<li>Tap <strong>Custom&#8230;</strong><br />
<a href="http://brandontreb.com/wp-content/uploads/2009/10/photo-2.jpg"><img class="alignnone size-full wp-image-541" title="photo 2" src="http://brandontreb.com/wp-content/uploads/2009/10/photo-2.jpg" alt="photo 2" width="320" height="480" /></a></li>
<li>In the <strong>Image Service API Endpoint</strong> type in the URL to the <strong>homepage</strong> of your blog.  Note, this is NOT your gallery page.  Also, and this is REALLY IMPORTANT.  If WordPress is installed in a sub-directory (ie http://brandontreb.com/blog), you need to include the <strong>/index.php </strong>at the end.  This is a weird WordPress issue.  So, as an example, if wordpress is installed at http://brandontreb.com/blog, I would want to enter http://brandontreb.com/blog/index.php.<br />
<a href="http://brandontreb.com/wp-content/uploads/2009/10/photo-5.jpg"><img class="alignnone size-full wp-image-542" title="photo 5" src="http://brandontreb.com/wp-content/uploads/2009/10/photo-5.jpg" alt="photo 5" width="320" height="480" /></a></li>
<li>Tap <strong>Save</strong></li>
<li>Upload photos as usual and forget about Twitpic!</li>
</ol>
<h2>Troubleshooting</h2>
<p>1. The most common issues are related to file permissions.  If you are having a problem, check to make sure that the tweetpress directory has been created inside your wp-content folder.  If not, try manually creating a folder named tweetpress inside of wp-content. Set its file permissions to 777.  Then, create a folder inside of the tweetpress folder. Name it thumbs. Make sure its file permissions are set to 777.</p>
<p>2. Another problem could be that WordPress is having trouble with the upload.  Try adding /index.php to your web address in the Tweetie custom image settings.  Again, this is very important if WordPress is installed in a directory that is not the root.</p>
<p>3. Uninstall and reinstall.  Sounds dumb, but this is always a good step when troubleshooting plugin issues.</p>
<p>4. Make sure you are up-to-date on your Tweetpress and WordPress installations.</p>
<p>So, one thing I want to mention.  WordPress is a very large application with many different configuration options.  I have tried to cover all types of installations with TweetPress. If Tweetpress is not working for you, don&#8217;t bug Loren, send me an email at brandontreb [at] gmail [dot] com.  Include the following information:</p>
<ul>
<li>If WP is installed in the root directory or a sub-directory</li>
<li>The URL rewrite settings your are using (if any). this is also known as your permalink structure.</li>
<li>The location of your blog and gallery page (so I can check it out)</li>
<li>Any other info you think might be helpful</li>
</ul>
<p>You can also <a href="http://twitter.com/brandontreb">ping me on Twitter</a>.</p>
<p>Thanks for checking out Tweetpress and please send me all of your suggestions for features.  While I won&#8217;t get to all of them, I will certainly add the one&#8217;s that are most requested.  So feel free to send me any and all suggestions.</p>
]]></content:encoded>
			<wfw:commentRss>http://brandontreb.com/tutorial-tweetpress-integration-with-tweetie/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Post Photos To Twitter From Your WordPress Blog With TweetPress</title>
		<link>http://brandontreb.com/post-photos-to-twitter-from-your-wordpress-blog-with-tweetpress/</link>
		<comments>http://brandontreb.com/post-photos-to-twitter-from-your-wordpress-blog-with-tweetpress/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 15:41:23 +0000</pubDate>
		<dc:creator>brandontreb</dc:creator>
				<category><![CDATA[Twitter]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[tweetpress]]></category>
		<category><![CDATA[twitpic]]></category>

		<guid isPermaLink="false">http://brandontreb.com/?p=510</guid>
		<description><![CDATA[That&#8217;s right. With the latest release of TweetPress (version 1.1.1), you can post photos directly to Twitter from your WordPress blog&#8217;s gallery page. Here are the steps to do it. Navigate to the TweetPress admin Settings &#62; TweetPress Enter your Twitter username and password Press the Save Twitter Settings button TweetPress will verify your username [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="alignnone size-medium wp-image-507" title="twit" src="http://brandontreb.com/wp-content/uploads/2009/09/twit-500x207.png" alt="twit" width="500" height="207" /></p>
<p style="text-align: left;">That&#8217;s right.  With the latest release of TweetPress (version 1.1.1), you can post photos directly to Twitter from your WordPress blog&#8217;s gallery page.  Here are the steps to do it.</p>
<ol>
<li>Navigate to the TweetPress admin <strong>Settings &gt; TweetPress</strong></li>
<li>Enter your Twitter username and password</li>
<li>Press the <strong>Save Twitter Settings</strong> button
<ol>
<li>TweetPress will verify your username and password with Twitter</li>
<li>If they are incorrect, it will let you know and you must re enter them</li>
</ol>
</li>
<li>Navigate to your gallery page</li>
<li>You should now see a form that has a text box and an upload button</li>
<li>Click <strong>browse</strong> to find an image on your computer to post</li>
<li>Enter your Tweet in the box</li>
<li>Click <strong>Post</strong></li>
</ol>
<p>It&#8217;s very quick and easy.  If you have any suggestions for TweetPress please <a href="http://brandontreb.com/contact-me/">contact me</a>, or leave comments in this post.</p>
]]></content:encoded>
			<wfw:commentRss>http://brandontreb.com/post-photos-to-twitter-from-your-wordpress-blog-with-tweetpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Creating A Twitter Client In Objective-C Client Part 2</title>
		<link>http://brandontreb.com/creating-a-twitter-client-in-objective-c-client-part-2/</link>
		<comments>http://brandontreb.com/creating-a-twitter-client-in-objective-c-client-part-2/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 14:00:29 +0000</pubDate>
		<dc:creator>brandontreb</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[objective c]]></category>
		<category><![CDATA[Objective-c update twitter status]]></category>

		<guid isPermaLink="false">http://brandontreb.com/?p=361</guid>
		<description><![CDATA[This is part 2 in our series about creating a Twitter client in Objective-C.  In case you missed it, here is a link to part 1 of this series. In the last tutorial I showed you how to retrieve data from Twitter and display the XML in the Console.  Today, we will be focusing on sending messages to Twitter via POST.  We will be implementing the code to update our Twitter status. So let's just dig right in.Open up TwitterRequest.h and add the following code (Click the image to enlarge).We have added two properties. ]]></description>
			<content:encoded><![CDATA[<p>This is part 2 in our series about creating a Twitter client in Objective-C.  In case you missed it, here is a <a href="http://brandontreb.com/objective-c-programming-tutorial-creating-a-twitter-client-part-1/">link to part 1</a> of this series.</p>
<p>In the last tutorial I showed you how to retrieve data from Twitter and display the XML in the Console.  Today, we will be focusing on sending messages to Twitter via <a href="http://en.wikipedia.org/wiki/POST_(HTTP)">POST</a>.  We will be implementing the code to update our Twitter status.  So let&#8217;s just dig right in.</p>
<h2>1. Updating The TwitterRequest Header File</h2>
<p>Open up TwitterRequest.h and add the following code (Click the image to enlarge)</p>
<p><a href="http://brandontreb.com/wp-content/uploads/2009/07/screenshot_16.png"><img class="size-full wp-image-362 alignnone" title="screenshot_16" src="http://brandontreb.com/wp-content/uploads/2009/07/screenshot_16.png" alt="screenshot_16" width="666" height="395" /></a></p>
<p>We have added two properties.  The first <strong>isPost</strong> will be true when we are calling a method that requires a POST to Twitter.  This will be methods such as update_status, follow, etc&#8230; Next, the variable <strong>requestBody</strong> will hold the POST arguments that will be sent to Twitter.  These will be things such as status text or friend id.</p>
<p>Finally, we will be adding a method called <strong>statuses_update</strong>.  The reason I named it this is because that is what the method is called in the <a href="http://apiwiki.twitter.com/Twitter-API-Documentation">Twitter API</a>. Like our <strong>friends_timeline</strong> method, it takes a delegate and selector to call when the request is complete.</p>
<p><strong>Important:</strong> I didn&#8217;t highlight this in the screenshot but make sure you change <strong>theRequest</strong> from an <strong>NSURLRequest</strong> to <strong>NSMutableURLRequest</strong>.  It will give us some additional methods to set up the POST.</p>
<h2>2. Updating The Twitter Request Class</h2>
<p>Open up <strong>TwitterRequest.m </strong>and add the following code (Click the image to enlarge):</p>
<p><a href="http://brandontreb.com/wp-content/uploads/2009/07/screenshot_17.png"><img class="size-full wp-image-363 alignnone" title="screenshot_17" src="http://brandontreb.com/wp-content/uploads/2009/07/screenshot_17.png" alt="screenshot_17" width="670" height="293" /></a></p>
<p>I&#8217;ll start by explaining the <strong>status_update</strong> method.  We first set the global <strong>isPost</strong> property to true.  This will tell the request method to make a POST.  The next 2 lines set the callback stuff as we did before.  The only new line here is setting the <strong>requestBody</strong> variable.  This is just a string that looks like &#8220;status=new twitter status&#8221;.</p>
<p>The addition to the <strong>request </strong>method is what will allow us to POST to Twitter.  First, we check if the <strong>isPost</strong> property is set.  This will be true if <strong>request</strong> is called from our <strong>status_update </strong>method.  Next, we call the <strong>setHTTPMethod</strong> of the request to POST. This is pretty obvious.</p>
<p>The following line let&#8217;s Twitter know the type of data that we are sending to it.  Next, we call <strong>setHTTPBody</strong> to set the body of the request.  At some point we will want to URL Encode this string, but that will be for a different tutorial.  Just don&#8217;t use any special characters such as &amp; and = in your update to Twitter right now.  All that is happening on this line is we convert the string to NSData using the <strong>dataUsingEncoding </strong>method of NSString and set it to the HTTPBody.</p>
<p>The last line just sets the Content-Length property to the length of our string.  This is needed to correctly do a POST.</p>
<h2>3. Calling The statuses_update Method To Update Your Twitter Status</h2>
<p>Open up <strong>ApplicationDelegate.m</strong> and add the following code (click the image to enlarge):</p>
<p><a href="http://brandontreb.com/wp-content/uploads/2009/07/screenshot_03.jpg"><img class="size-full wp-image-367 alignnone" title="screenshot_03" src="http://brandontreb.com/wp-content/uploads/2009/07/screenshot_03.jpg" alt="screenshot_03" width="659" height="217" /></a></p>
<p>One thing to notice here is I commented out the line to get the friends timeline.  This is because having both requests running at the same time with the same request object could cause conflicts.  The best way to approch this to create an entirly new TwitterRequest object.  I just wanted to keep it short.</p>
<p>This is pretty straight forward.  We call the <strong>statuses_update</strong> method the same way we called the <strong>friends_timeline</strong> method except pass in the update text.  The information received back from Twitter will look something like this:</p>
<p><a href="http://brandontreb.com/wp-content/uploads/2009/07/screenshot_01.jpg"><img class="size-full wp-image-368 alignnone" title="screenshot_01" src="http://brandontreb.com/wp-content/uploads/2009/07/screenshot_01.jpg" alt="screenshot_01" width="616" height="564" /></a></p>
<p>It&#8217;s basically all of your personal profile information.</p>
<p>That&#8217;s it for today.  If you have any comments or questions, feel free to leave them in the comments of this post or <a href="http://twitter.com/brandontreb">write me on Twitter</a>.  You can also download the source for this version below.</p>
<p><a href="http://brandontreb.com/wp-content/uploads/2009/07/Chirpie1.zip">Twitter Mac Client Tutorial 2 – Source</a></p>
<p>Happy Coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://brandontreb.com/creating-a-twitter-client-in-objective-c-client-part-2/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
