<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: Collabtweet - Multiple Users, Single Twitter Account</title>
	<atom:link href="http://anantgarg.com/2009/05/20/collabtweet-multiple-users-single-twitter-account/feed/" rel="self" type="application/rss+xml" />
	<link>http://anantgarg.com/2009/05/20/collabtweet-multiple-users-single-twitter-account/</link>
	<description>on web development</description>
	<pubDate>Thu, 17 May 2012 06:27:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: bH</title>
		<link>http://anantgarg.com/2009/05/20/collabtweet-multiple-users-single-twitter-account/comment-page-1/#comment-39770</link>
		<dc:creator>bH</dc:creator>
		<pubDate>Tue, 06 Mar 2012 01:22:55 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=273#comment-39770</guid>
		<description>I've fixed the original to work with Oauth using Twitter's Oauth PHP class. Don't forget to give your app read and write access in Twitter after you've created it. You can download it here: http://bit.ly/zaQIUN</description>
		<content:encoded><![CDATA[<p>I&#8217;ve fixed the original to work with Oauth using Twitter&#8217;s Oauth PHP class. Don&#8217;t forget to give your app read and write access in Twitter after you&#8217;ve created it. You can download it here: <a href="http://bit.ly/zaQIUN" rel="nofollow">http://bit.ly/zaQIUN</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fanatic</title>
		<link>http://anantgarg.com/2009/05/20/collabtweet-multiple-users-single-twitter-account/comment-page-1/#comment-17380</link>
		<dc:creator>Fanatic</dc:creator>
		<pubDate>Tue, 20 Sep 2011 08:50:54 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=273#comment-17380</guid>
		<description>I get the same results using the demo live, the tweet is submitted successfully but not displaying on the Twitter page, is this project dropped?</description>
		<content:encoded><![CDATA[<p>I get the same results using the demo live, the tweet is submitted successfully but not displaying on the Twitter page, is this project dropped?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://anantgarg.com/2009/05/20/collabtweet-multiple-users-single-twitter-account/comment-page-1/#comment-17082</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Tue, 13 Sep 2011 22:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=273#comment-17082</guid>
		<description>Does anyone know if allowing multiple users to access your account violates the Twitter (or Twitter API) Terms of Service?</description>
		<content:encoded><![CDATA[<p>Does anyone know if allowing multiple users to access your account violates the Twitter (or Twitter API) Terms of Service?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Opensource Deveploment</title>
		<link>http://anantgarg.com/2009/05/20/collabtweet-multiple-users-single-twitter-account/comment-page-1/#comment-14053</link>
		<dc:creator>Opensource Deveploment</dc:creator>
		<pubDate>Thu, 09 Jun 2011 11:56:36 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=273#comment-14053</guid>
		<description>Its really a great idea for the small business websites to popularize their product or services.</description>
		<content:encoded><![CDATA[<p>Its really a great idea for the small business websites to popularize their product or services.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gem</title>
		<link>http://anantgarg.com/2009/05/20/collabtweet-multiple-users-single-twitter-account/comment-page-1/#comment-11664</link>
		<dc:creator>Gem</dc:creator>
		<pubDate>Wed, 30 Mar 2011 14:50:38 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=273#comment-11664</guid>
		<description>Iv got exactly the same problem as Rutger has Twitter stopped this from working?

G</description>
		<content:encoded><![CDATA[<p>Iv got exactly the same problem as Rutger has Twitter stopped this from working?</p>
<p>G</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rutger</title>
		<link>http://anantgarg.com/2009/05/20/collabtweet-multiple-users-single-twitter-account/comment-page-1/#comment-9081</link>
		<dc:creator>rutger</dc:creator>
		<pubDate>Tue, 18 Jan 2011 09:22:08 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=273#comment-9081</guid>
		<description>I have everything setup as far as I can see, the site lets me post a tweet and all seems to be going alright, but it never shows up on my twitter.

Any idea what could be wrong?</description>
		<content:encoded><![CDATA[<p>I have everything setup as far as I can see, the site lets me post a tweet and all seems to be going alright, but it never shows up on my twitter.</p>
<p>Any idea what could be wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Red Dragon</title>
		<link>http://anantgarg.com/2009/05/20/collabtweet-multiple-users-single-twitter-account/comment-page-1/#comment-7757</link>
		<dc:creator>Red Dragon</dc:creator>
		<pubDate>Wed, 03 Nov 2010 17:24:18 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=273#comment-7757</guid>
		<description>Disregard that last comment - it does try to load some web page with the error at the bottom,  but its not twitterOAuth.php

My post from (11.1.10 / 6pm) is accurate though.  Sorry.</description>
		<content:encoded><![CDATA[<p>Disregard that last comment - it does try to load some web page with the error at the bottom,  but its not twitterOAuth.php</p>
<p>My post from (11.1.10 / 6pm) is accurate though.  Sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Red Dragon</title>
		<link>http://anantgarg.com/2009/05/20/collabtweet-multiple-users-single-twitter-account/comment-page-1/#comment-7756</link>
		<dc:creator>Red Dragon</dc:creator>
		<pubDate>Wed, 03 Nov 2010 17:13:16 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=273#comment-7756</guid>
		<description>The error above actually loads the page twitterOAuth.php into the browser and displays it as if it were a web page meant to be displayed -- and the error is at the very bottom.

Please help?</description>
		<content:encoded><![CDATA[<p>The error above actually loads the page twitterOAuth.php into the browser and displays it as if it were a web page meant to be displayed &#8212; and the error is at the very bottom.</p>
<p>Please help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Red Dragon</title>
		<link>http://anantgarg.com/2009/05/20/collabtweet-multiple-users-single-twitter-account/comment-page-1/#comment-7723</link>
		<dc:creator>Red Dragon</dc:creator>
		<pubDate>Mon, 01 Nov 2010 13:26:21 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=273#comment-7723</guid>
		<description>I don't know whats going on -- it keeps giving an error on the connection string:

Fatal error: Class 'TwitterOAuth' not found in D:\Hosting\xxxxxx\html\myWebsite.com\twitter\collabtweet.php  on line 24

Line 24 is:
$connection = new TwitterOAuth("xxx, xxx, xxx, xxx");

I definitely downloaded the libraries and uploaded them too, so that isn't the problem.

Please help?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know whats going on &#8212; it keeps giving an error on the connection string:</p>
<p>Fatal error: Class &#8216;TwitterOAuth&#8217; not found in D:\Hosting\xxxxxx\html\myWebsite.com\twitter\collabtweet.php  on line 24</p>
<p>Line 24 is:<br />
$connection = new TwitterOAuth(&#8221;xxx, xxx, xxx, xxx&#8221;);</p>
<p>I definitely downloaded the libraries and uploaded them too, so that isn&#8217;t the problem.</p>
<p>Please help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: c0bra</title>
		<link>http://anantgarg.com/2009/05/20/collabtweet-multiple-users-single-twitter-account/comment-page-1/#comment-7701</link>
		<dc:creator>c0bra</dc:creator>
		<pubDate>Sat, 30 Oct 2010 10:07:02 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=273#comment-7701</guid>
		<description>it looks like u havent uploaded the twitter librarys yet....

oh, i see... i forgot to mention it: goto http://github.com/abraham/twitteroauth/tree/master/twitteroauth/

and get the two files. put them into a directory named "twitteroauth"

i hope this was the only mistake!

ive added some exception management...not very detailed but i think it'll do the job.

i cant upload a full version here and anywhere else would be not very gentle.

function tweet() {
	$status = $_POST['tweet'].' @'.$_SESSION['username'];
	
	require_once('twitteroauth/twitterOAuth.php');
	
	$oauth_token = "-fill in here-";
	$oauth_token_secret = "-fill in here-";

	function getConnectionWithAccessToken($oauth_token, $oauth_token_secret) {
	  $connection = new TwitterOAuth("-fill consumer key in here-", "-fill in consumer secret here-", $oauth_token, $oauth_token_secret);
	  return $connection;
	}

	$connection = getConnectionWithAccessToken($oauth_token, $oauth_token_secret);
	//$connection-&gt;format = 'json';
	
	
	$content = $connection-&gt;OAuthRequest('https://twitter.com/statuses/update.json', array('status' =&gt; $status), 'POST');
	
	$response = json_decode($content);
	
	global $twitterUser;
	
	if (isset($response-&gt;{'id'})) {
		echo $twitterUser."/status/".$response-&gt;{'id'};
	} else {
		fwrite($log, "tweeting not successful!\n");
		echo "0";
	}
}</description>
		<content:encoded><![CDATA[<p>it looks like u havent uploaded the twitter librarys yet&#8230;.</p>
<p>oh, i see&#8230; i forgot to mention it: goto <a href="http://github.com/abraham/twitteroauth/tree/master/twitteroauth/" rel="nofollow">http://github.com/abraham/twitteroauth/tree/master/twitteroauth/</a></p>
<p>and get the two files. put them into a directory named &#8220;twitteroauth&#8221;</p>
<p>i hope this was the only mistake!</p>
<p>ive added some exception management&#8230;not very detailed but i think it&#8217;ll do the job.</p>
<p>i cant upload a full version here and anywhere else would be not very gentle.</p>
<p>function tweet() {<br />
	$status = $_POST['tweet'].&#8217; @&#8217;.$_SESSION['username'];</p>
<p>	require_once(&#8217;twitteroauth/twitterOAuth.php&#8217;);</p>
<p>	$oauth_token = &#8220;-fill in here-&#8221;;<br />
	$oauth_token_secret = &#8220;-fill in here-&#8221;;</p>
<p>	function getConnectionWithAccessToken($oauth_token, $oauth_token_secret) {<br />
	  $connection = new TwitterOAuth(&#8221;-fill consumer key in here-&#8221;, &#8220;-fill in consumer secret here-&#8221;, $oauth_token, $oauth_token_secret);<br />
	  return $connection;<br />
	}</p>
<p>	$connection = getConnectionWithAccessToken($oauth_token, $oauth_token_secret);<br />
	//$connection-&gt;format = &#8216;json&#8217;;</p>
<p>	$content = $connection-&gt;OAuthRequest(&#8217;https://twitter.com/statuses/update.json&#8217;, array(&#8217;status&#8217; =&gt; $status), &#8216;POST&#8217;);</p>
<p>	$response = json_decode($content);</p>
<p>	global $twitterUser;</p>
<p>	if (isset($response-&gt;{&#8217;id&#8217;})) {<br />
		echo $twitterUser.&#8221;/status/&#8221;.$response-&gt;{&#8217;id&#8217;};<br />
	} else {<br />
		fwrite($log, &#8220;tweeting not successful!\n&#8221;);<br />
		echo &#8220;0&#8243;;<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

