<?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: Letting your users &#8220;Sign In With Twitter&#8221; with OAuth</title>
	<atom:link href="http://www.jaisenmathai.com/blog/2009/04/30/letting-your-users-sign-in-with-twitter-with-oauth/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jaisenmathai.com/blog/2009/04/30/letting-your-users-sign-in-with-twitter-with-oauth/</link>
	<description>A blog about killer code</description>
	<lastBuildDate>Thu, 29 Jul 2010 17:11:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Computers &#38; Web Development Stuff (Links) &#124; Joel Rodrigues</title>
		<link>http://www.jaisenmathai.com/blog/2009/04/30/letting-your-users-sign-in-with-twitter-with-oauth/comment-page-6/#comment-1303</link>
		<dc:creator>Computers &#38; Web Development Stuff (Links) &#124; Joel Rodrigues</dc:creator>
		<pubDate>Fri, 23 Jul 2010 18:27:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaisenmathai.com/blog/?p=123#comment-1303</guid>
		<description>[...] Jaisen Mathai: Letting your users “Sign In With Twitter” with OAuth www.jaisenmathai.com/blog/2009/04/30/letting-your-users-sign-in-with-twitter-with-oauth/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Jaisen Mathai: Letting your users “Sign In With Twitter” with OAuth <a href="http://www.jaisenmathai.com/blog/2009/04/30/letting-your-users-sign-in-with-twitter-with-oauth/" rel="nofollow">http://www.jaisenmathai.com/blog/2009/04/30/letting-your-users-sign-in-with-twitter-with-oauth/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Server-side Twitter client possible with OAUTH? &#124; The Largest Forum Archive</title>
		<link>http://www.jaisenmathai.com/blog/2009/04/30/letting-your-users-sign-in-with-twitter-with-oauth/comment-page-5/#comment-1293</link>
		<dc:creator>Server-side Twitter client possible with OAUTH? &#124; The Largest Forum Archive</dc:creator>
		<pubDate>Fri, 02 Jul 2010 02:02:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaisenmathai.com/blog/?p=123#comment-1293</guid>
		<description>[...] Callback method. You are redirected to Twitter, (login if isn&#8217;t), click allow access, get redirection back to your callback URL. [...]</description>
		<content:encoded><![CDATA[<p>[...] Callback method. You are redirected to Twitter, (login if isn&#8217;t), click allow access, get redirection back to your callback URL. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaisen</title>
		<link>http://www.jaisenmathai.com/blog/2009/04/30/letting-your-users-sign-in-with-twitter-with-oauth/comment-page-5/#comment-1197</link>
		<dc:creator>jaisen</dc:creator>
		<pubDate>Mon, 07 Dec 2009 05:38:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaisenmathai.com/blog/?p=123#comment-1197</guid>
		<description>Fyi, I&#039;m going to close comments on this post.  It&#039;s already got 256.  If you have questions regarding the library please redirect them to Github by opening an issue.

http://github.com/jmathai/twitter-async/issues</description>
		<content:encoded><![CDATA[<p>Fyi, I&#8217;m going to close comments on this post.  It&#8217;s already got 256.  If you have questions regarding the library please redirect them to Github by opening an issue.</p>
<p><a href="http://github.com/jmathai/twitter-async/issues" rel="nofollow">http://github.com/jmathai/twitter-async/issues</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaisen</title>
		<link>http://www.jaisenmathai.com/blog/2009/04/30/letting-your-users-sign-in-with-twitter-with-oauth/comment-page-5/#comment-1196</link>
		<dc:creator>jaisen</dc:creator>
		<pubDate>Mon, 07 Dec 2009 05:34:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaisenmathai.com/blog/?p=123#comment-1196</guid>
		<description>This is a problem with PHP&#039;s max integer value being exceeded.  My suggestion is to convert the integers returned in the response to be strings prior to json_decode&#039;ing.  Replace line 214 in
http://github.com/jmathai/twitter-async/blob/master/EpiTwitter.php#L214 with the following.

&lt;pre name=&quot;code&quot; class=&quot;php&quot;&gt;    $this-&gt;responseText = preg_replace(&#039;/&quot;(next&#124;previous)_cursor&quot;:(-?[0-9]+)/&#039;, &quot;\&quot;$1_cursor\&quot;:\&quot;$2\&quot;&quot;, $this-&gt;__resp-&gt;data);&lt;/pre&gt;

I&#039;ve been running with this in production for a couple months with no issues.  Haven&#039;t yet considered adding it to the library as a patch.</description>
		<content:encoded><![CDATA[<p>This is a problem with PHP&#8217;s max integer value being exceeded.  My suggestion is to convert the integers returned in the response to be strings prior to json_decode&#8217;ing.  Replace line 214 in<br />
<a href="http://github.com/jmathai/twitter-async/blob/master/EpiTwitter.php#L214" rel="nofollow">http://github.com/jmathai/twitter-async/blob/master/EpiTwitter.php#L214</a> with the following.</p>
<pre name="code" class="php">    $this->responseText = preg_replace('/"(next|previous)_cursor":(-?[0-9]+)/', "\"$1_cursor\":\"$2\"", $this->__resp->data);</pre>
<p>I&#8217;ve been running with this in production for a couple months with no issues.  Haven&#8217;t yet considered adding it to the library as a patch.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry</title>
		<link>http://www.jaisenmathai.com/blog/2009/04/30/letting-your-users-sign-in-with-twitter-with-oauth/comment-page-5/#comment-1195</link>
		<dc:creator>Harry</dc:creator>
		<pubDate>Mon, 07 Dec 2009 05:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaisenmathai.com/blog/?p=123#comment-1195</guid>
		<description>when we try to get the followers for some twitter user,
the next_cursor we got is in scientific format, and is not usable for next request.

here is the code:
&lt;pre name=&quot;code&quot; class=&quot;php&quot;&gt;    $twitter_obj = new EpiTwitter();
    $search = $twitter_obj-&gt;get_basic(&#039;/statuses/followers.json&#039; , 
                            array(&#039;screen_name&#039; =&gt; $this-&gt;target_screen_name,
                                  &#039;cursor&#039; =&gt; intval ($this-&gt;cursor)));
    $followers = array_reverse($search-&gt;users);
    
    $this-&gt;cursor = (string) $search-&gt;next_cursor;&lt;/pre&gt;


when dump the $search object , we got 
[next_cursor] =&gt; 1.32063884154E+18
and in textResponse, it is ok:
&quot;next_cursor&quot;:1320638841537822006, &quot;previous_cursor&quot;:0 

seems the lib is converting this value into scientific format.

Can you help to debug and fix this?

thx

Harry</description>
		<content:encoded><![CDATA[<p>when we try to get the followers for some twitter user,<br />
the next_cursor we got is in scientific format, and is not usable for next request.</p>
<p>here is the code:</p>
<pre name="code" class="php">    $twitter_obj = new EpiTwitter();
    $search = $twitter_obj-&gt;get_basic('/statuses/followers.json' ,
                            array('screen_name' =&gt; $this-&gt;target_screen_name,
                                  'cursor' =&gt; intval ($this-&gt;cursor)));
    $followers = array_reverse($search-&gt;users);

    $this-&gt;cursor = (string) $search-&gt;next_cursor;</pre>
<p>when dump the $search object , we got<br />
[next_cursor] =&gt; 1.32063884154E+18<br />
and in textResponse, it is ok:<br />
&#8220;next_cursor&#8221;:1320638841537822006, &#8220;previous_cursor&#8221;:0 </p>
<p>seems the lib is converting this value into scientific format.</p>
<p>Can you help to debug and fix this?</p>
<p>thx</p>
<p>Harry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.jaisenmathai.com/blog/2009/04/30/letting-your-users-sign-in-with-twitter-with-oauth/comment-page-5/#comment-1182</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 04 Dec 2009 06:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaisenmathai.com/blog/?p=123#comment-1182</guid>
		<description>Thanks Jaisen - I totally did not know that... Gotta love @twitterapi&#039;s consistent API design.... :&#124;</description>
		<content:encoded><![CDATA[<p>Thanks Jaisen &#8211; I totally did not know that&#8230; Gotta love @twitterapi&#8217;s consistent API design&#8230;. :|</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaisen</title>
		<link>http://www.jaisenmathai.com/blog/2009/04/30/letting-your-users-sign-in-with-twitter-with-oauth/comment-page-5/#comment-1181</link>
		<dc:creator>jaisen</dc:creator>
		<pubDate>Fri, 04 Dec 2009 03:20:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaisenmathai.com/blog/?p=123#comment-1181</guid>
		<description>The retweet endpoint is /statuses/retweet/{$id}.json instead of /statuses/retweet.json?id={$id}.</description>
		<content:encoded><![CDATA[<p>The retweet endpoint is /statuses/retweet/{$id}.json instead of /statuses/retweet.json?id={$id}.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.jaisenmathai.com/blog/2009/04/30/letting-your-users-sign-in-with-twitter-with-oauth/comment-page-5/#comment-1179</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 04 Dec 2009 00:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaisenmathai.com/blog/?p=123#comment-1179</guid>
		<description>Using &lt;pre class=&quot;code&quot; name=&quot;php&quot;&gt;$pub_response = $twitterObj-&gt;post(&#039;/statuses/retweet.json&#039;, array(&#039;id&#039; =&gt; $rt));&lt;/pre&gt; I still get the same error all the time...</description>
		<content:encoded><![CDATA[<p>Using
<pre class="code" name="php">$pub_response = $twitterObj-&gt;post('/statuses/retweet.json', array('id' =&gt; $rt));</pre>
<p> I still get the same error all the time&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.jaisenmathai.com/blog/2009/04/30/letting-your-users-sign-in-with-twitter-with-oauth/comment-page-5/#comment-1178</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 04 Dec 2009 00:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaisenmathai.com/blog/?p=123#comment-1178</guid>
		<description>Any idea?</description>
		<content:encoded><![CDATA[<p>Any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.jaisenmathai.com/blog/2009/04/30/letting-your-users-sign-in-with-twitter-with-oauth/comment-page-5/#comment-1177</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 03 Dec 2009 23:46:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaisenmathai.com/blog/?p=123#comment-1177</guid>
		<description>Not sure what those weird double escapes were.. I just upgraded to your most current version using Git as you suggested, but I still get : {&quot;request&quot;:&quot;/1/statuses/retweet.json&quot;,&quot;error&quot;:&quot;Not found&quot;}

on trying to retweet using the code above... $rt is absolutely a valid tweet id...

any thoughts?</description>
		<content:encoded><![CDATA[<p>Not sure what those weird double escapes were.. I just upgraded to your most current version using Git as you suggested, but I still get : {&#8220;request&#8221;:&#8221;/1/statuses/retweet.json&#8221;,&#8221;error&#8221;:&#8221;Not found&#8221;}</p>
<p>on trying to retweet using the code above&#8230; $rt is absolutely a valid tweet id&#8230;</p>
<p>any thoughts?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
