<?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: Develop auto post publishing twitter app</title>
	<atom:link href="http://thinkdiff.net/php/develop-auto-post-publishing-twitter-app/feed/" rel="self" type="application/rss+xml" />
	<link>http://thinkdiff.net/php/develop-auto-post-publishing-twitter-app/</link>
	<description>geeky stuff, facebook, twitter, linkedin, php, mysql, web development, tips and more</description>
	<lastBuildDate>Thu, 09 Sep 2010 06:31:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Auto Glass Shop</title>
		<link>http://thinkdiff.net/php/develop-auto-post-publishing-twitter-app/comment-page-1/#comment-14920</link>
		<dc:creator>Auto Glass Shop</dc:creator>
		<pubDate>Fri, 30 Jul 2010 10:28:07 +0000</pubDate>
		<guid isPermaLink="false">http://thinkdiff.net/?p=880#comment-14920</guid>
		<description>Impressive ! I would like to attachenter a image to illustate your fantabulous article, but I don&#039;t see how to do ? Can someone assist me ?</description>
		<content:encoded><![CDATA[<p>Impressive ! I would like to attachenter a image to illustate your fantabulous article, but I don&#8217;t see how to do ? Can someone assist me ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mahmud ahsan</title>
		<link>http://thinkdiff.net/php/develop-auto-post-publishing-twitter-app/comment-page-1/#comment-12034</link>
		<dc:creator>mahmud ahsan</dc:creator>
		<pubDate>Tue, 29 Jun 2010 03:24:32 +0000</pubDate>
		<guid isPermaLink="false">http://thinkdiff.net/?p=880#comment-12034</guid>
		<description>I left that security related code for you. That is your homework.</description>
		<content:encoded><![CDATA[<p>I left that security related code for you. That is your homework.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fayyaz Ali</title>
		<link>http://thinkdiff.net/php/develop-auto-post-publishing-twitter-app/comment-page-1/#comment-12027</link>
		<dc:creator>Fayyaz Ali</dc:creator>
		<pubDate>Mon, 28 Jun 2010 22:10:28 +0000</pubDate>
		<guid isPermaLink="false">http://thinkdiff.net/?p=880#comment-12027</guid>
		<description>Hello Mahmud!

I am really impressed with your work.. you are awsome.. will keep my comments for later.

here i have some questions..

in the code below; do you have sql injection in mind? i dont think so.. i dont see any unescape_real_string like functions.. can you give the live web link for it to try some sql injection ;).. just kidding..


also can you show us how to implement oauth in our own application.. or any secure authentication mechanism..

Thanks in advance..</description>
		<content:encoded><![CDATA[<p>Hello Mahmud!</p>
<p>I am really impressed with your work.. you are awsome.. will keep my comments for later.</p>
<p>here i have some questions..</p>
<p>in the code below; do you have sql injection in mind? i dont think so.. i dont see any unescape_real_string like functions.. can you give the live web link for it to try some sql injection <img src='http://thinkdiff.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .. just kidding..</p>
<p>also can you show us how to implement oauth in our own application.. or any secure authentication mechanism..</p>
<p>Thanks in advance..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://thinkdiff.net/php/develop-auto-post-publishing-twitter-app/comment-page-1/#comment-9536</link>
		<dc:creator>james</dc:creator>
		<pubDate>Tue, 11 May 2010 11:40:47 +0000</pubDate>
		<guid isPermaLink="false">http://thinkdiff.net/?p=880#comment-9536</guid>
		<description>Dear mahmud ahsan,

    Sorry I was wrong!!!!
But When  I tried it with your &quot;twitter_cron.php&quot;, as i execute the file I got the result...

really Nice Demo....

It appreciate me....

Anyway thanks Again................... work so far..

Keep update new tutorials...</description>
		<content:encoded><![CDATA[<p>Dear mahmud ahsan,</p>
<p>    Sorry I was wrong!!!!<br />
But When  I tried it with your &#8220;twitter_cron.php&#8221;, as i execute the file I got the result&#8230;</p>
<p>really Nice Demo&#8230;.</p>
<p>It appreciate me&#8230;.</p>
<p>Anyway thanks Again&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. work so far..</p>
<p>Keep update new tutorials&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://thinkdiff.net/php/develop-auto-post-publishing-twitter-app/comment-page-1/#comment-9529</link>
		<dc:creator>James</dc:creator>
		<pubDate>Tue, 11 May 2010 08:15:30 +0000</pubDate>
		<guid isPermaLink="false">http://thinkdiff.net/?p=880#comment-9529</guid>
		<description>Hi Dear,
I go the following ERROR... from your above code...

Woah there!
This page is no longer valid. It looks like someone already 
used the token information you provided. Please return to the site that sent you to this page and try again … it was probably an honest mistake.

I modified the twitter.php... as following code

[php]
$token=$result[0][&#039;twitter_token&#039;];// retrieve token from DB
$secret=$result[0][&#039;twitter_secret&#039;];// retrieve token secret from DB


if($secret!=&quot;&quot;){
$to = new TwitterOAuth($consumer_key, $consumer_secret, $token, $secret);
}
else{
        $to = new TwitterOAuth($consumer_key, $consumer_secret);
}
  
    //$to = new TwitterOAuth($consumer_key, $consumer_secret);
    $tok = $to-&gt;getRequestToken();
    
    $request_link = $to-&gt;getAuthorizeURL($tok);
    $_SESSION[&#039;oauth_request_token&#039;]        = $tok[&#039;oauth_token&#039;];
    $_SESSION[&#039;oauth_request_token_secret&#039;] = $tok[&#039;oauth_token_secret&#039;];
    header(&quot;Location: $request_link&quot;);
[/php]
Can you suggest me... where I caught as wrong...</description>
		<content:encoded><![CDATA[<p>Hi Dear,<br />
I go the following ERROR&#8230; from your above code&#8230;</p>
<p>Woah there!<br />
This page is no longer valid. It looks like someone already<br />
used the token information you provided. Please return to the site that sent you to this page and try again … it was probably an honest mistake.</p>
<p>I modified the twitter.php&#8230; as following code</p>
<pre class="brush: php;">
$token=$result[0]['twitter_token'];// retrieve token from DB
$secret=$result[0]['twitter_secret'];// retrieve token secret from DB

if($secret!=&quot;&quot;){
$to = new TwitterOAuth($consumer_key, $consumer_secret, $token, $secret);
}
else{
        $to = new TwitterOAuth($consumer_key, $consumer_secret);
}

    //$to = new TwitterOAuth($consumer_key, $consumer_secret);
    $tok = $to-&amp;gt;getRequestToken();

    $request_link = $to-&amp;gt;getAuthorizeURL($tok);
    $_SESSION['oauth_request_token']        = $tok['oauth_token'];
    $_SESSION['oauth_request_token_secret'] = $tok['oauth_token_secret'];
    header(&quot;Location: $request_link&quot;);
</pre>
<p>Can you suggest me&#8230; where I caught as wrong&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mahmud ahsan</title>
		<link>http://thinkdiff.net/php/develop-auto-post-publishing-twitter-app/comment-page-1/#comment-9505</link>
		<dc:creator>mahmud ahsan</dc:creator>
		<pubDate>Mon, 10 May 2010 16:45:04 +0000</pubDate>
		<guid isPermaLink="false">http://thinkdiff.net/?p=880#comment-9505</guid>
		<description>@james, if you save user&#039;s oauth_access_token and oauth_access_token_secret then next time you just need to set them to $token and $secret like

[php]

$token = $oauth_access_token; //from database
$secret= $oauth_access_token_secret; //from database

$to = new TwitterOAuth($consumer_key, $consumer_secret, $token, $secret);
[/php]

Then you can easily get information from your user or can do other tasks behalf of user.</description>
		<content:encoded><![CDATA[<p>@james, if you save user&#8217;s oauth_access_token and oauth_access_token_secret then next time you just need to set them to $token and $secret like</p>
<pre class="brush: php;">

$token = $oauth_access_token; //from database
$secret= $oauth_access_token_secret; //from database

$to = new TwitterOAuth($consumer_key, $consumer_secret, $token, $secret);
</pre>
<p>Then you can easily get information from your user or can do other tasks behalf of user.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://thinkdiff.net/php/develop-auto-post-publishing-twitter-app/comment-page-1/#comment-9496</link>
		<dc:creator>james</dc:creator>
		<pubDate>Mon, 10 May 2010 10:17:49 +0000</pubDate>
		<guid isPermaLink="false">http://thinkdiff.net/?p=880#comment-9496</guid>
		<description>Hai...really great demo......

Can You show the code to automatically display profile information(twitter user) when he login to my site through his(user&#039;s) previous oauth_access_token &amp; oauth_access_token_secret which already save to database.

Only the Next time visitor(user)&#039;s code.I mean How to use the oauth_access_token &amp; oauth_access_token_secret of database reuse and display user infor with authenticate again...

Like ping.fm site..</description>
		<content:encoded><![CDATA[<p>Hai&#8230;really great demo&#8230;&#8230;</p>
<p>Can You show the code to automatically display profile information(twitter user) when he login to my site through his(user&#8217;s) previous oauth_access_token &amp; oauth_access_token_secret which already save to database.</p>
<p>Only the Next time visitor(user)&#8217;s code.I mean How to use the oauth_access_token &amp; oauth_access_token_secret of database reuse and display user infor with authenticate again&#8230;</p>
<p>Like ping.fm site..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mahmud ahsan</title>
		<link>http://thinkdiff.net/php/develop-auto-post-publishing-twitter-app/comment-page-1/#comment-9259</link>
		<dc:creator>mahmud ahsan</dc:creator>
		<pubDate>Wed, 05 May 2010 20:26:35 +0000</pubDate>
		<guid isPermaLink="false">http://thinkdiff.net/?p=880#comment-9259</guid>
		<description>@prateek, I wish I could help you, but for some months I was not in touch with twitter api.</description>
		<content:encoded><![CDATA[<p>@prateek, I wish I could help you, but for some months I was not in touch with twitter api.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prateek</title>
		<link>http://thinkdiff.net/php/develop-auto-post-publishing-twitter-app/comment-page-1/#comment-9252</link>
		<dc:creator>prateek</dc:creator>
		<pubDate>Wed, 05 May 2010 19:17:50 +0000</pubDate>
		<guid isPermaLink="false">http://thinkdiff.net/?p=880#comment-9252</guid>
		<description>hey ahsan,
you are too good man!!

btw wanted a small help... can u tell me how can i publish tweets of my followers using Streaming API??</description>
		<content:encoded><![CDATA[<p>hey ahsan,<br />
you are too good man!!</p>
<p>btw wanted a small help&#8230; can u tell me how can i publish tweets of my followers using Streaming API??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gaurav</title>
		<link>http://thinkdiff.net/php/develop-auto-post-publishing-twitter-app/comment-page-1/#comment-8424</link>
		<dc:creator>Gaurav</dc:creator>
		<pubDate>Fri, 09 Apr 2010 19:12:42 +0000</pubDate>
		<guid isPermaLink="false">http://thinkdiff.net/?p=880#comment-8424</guid>
		<description>Hey Ahsan,
you are just amazing.

Hats off to you!</description>
		<content:encoded><![CDATA[<p>Hey Ahsan,<br />
you are just amazing.</p>
<p>Hats off to you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
