<?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: How to use and retain Twitter4J OAuth access token</title>
	<atom:link href="http://www.pakzilla.com/2010/03/01/how-to-use-and-retain-twitter4j-oauth-access-token/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pakzilla.com/2010/03/01/how-to-use-and-retain-twitter4j-oauth-access-token/</link>
	<description>A blog on Programming, Web and Technology</description>
	<lastBuildDate>Fri, 27 Jan 2012 11:09:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Thyago</title>
		<link>http://www.pakzilla.com/2010/03/01/how-to-use-and-retain-twitter4j-oauth-access-token/comment-page-1/#comment-16008</link>
		<dc:creator>Thyago</dc:creator>
		<pubDate>Wed, 05 Jan 2011 22:51:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.pakzilla.com/?p=831#comment-16008</guid>
		<description>Thank you very much, this save my day =)
I spent all day trying to use the tokens stored .. I did mess with the request token and access token. Now I can relax a little ;)</description>
		<content:encoded><![CDATA[<p>Thank you very much, this save my day =)<br />
I spent all day trying to use the tokens stored .. I did mess with the request token and access token. Now I can relax a little <img src='http://www.pakzilla.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://www.pakzilla.com/2010/03/01/how-to-use-and-retain-twitter4j-oauth-access-token/comment-page-1/#comment-7105</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Mon, 19 Jul 2010 23:59:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.pakzilla.com/?p=831#comment-7105</guid>
		<description>getOAuthAccessToken and setOAuthAccessToken methods are now deprecated.  Have you changed your code at all?</description>
		<content:encoded><![CDATA[<p>getOAuthAccessToken and setOAuthAccessToken methods are now deprecated.  Have you changed your code at all?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tahir Akram</title>
		<link>http://www.pakzilla.com/2010/03/01/how-to-use-and-retain-twitter4j-oauth-access-token/comment-page-1/#comment-7093</link>
		<dc:creator>Tahir Akram</dc:creator>
		<pubDate>Mon, 19 Jul 2010 16:01:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.pakzilla.com/?p=831#comment-7093</guid>
		<description>Shyam;

Yes, the access token need to save in database. And I also have the same question. If user came again so we use cookies to get his username and will lookup in database for access token and land it home page. 

So I think cookie need to be involved.</description>
		<content:encoded><![CDATA[<p>Shyam;</p>
<p>Yes, the access token need to save in database. And I also have the same question. If user came again so we use cookies to get his username and will lookup in database for access token and land it home page. </p>
<p>So I think cookie need to be involved.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shyam</title>
		<link>http://www.pakzilla.com/2010/03/01/how-to-use-and-retain-twitter4j-oauth-access-token/comment-page-1/#comment-7090</link>
		<dc:creator>Shyam</dc:creator>
		<pubDate>Mon, 19 Jul 2010 11:11:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.pakzilla.com/?p=831#comment-7090</guid>
		<description>Jeune,

When you say &quot;Also, you should persist the access token so that you can use it again in the future.&quot;

You mean like store it in database. I have usecase like twitterfeed. twitterfeed takes twitter username and password only once. But after it works by itself. You mean here twitterfeed is sotring some info in database.</description>
		<content:encoded><![CDATA[<p>Jeune,</p>
<p>When you say &#8220;Also, you should persist the access token so that you can use it again in the future.&#8221;</p>
<p>You mean like store it in database. I have usecase like twitterfeed. twitterfeed takes twitter username and password only once. But after it works by itself. You mean here twitterfeed is sotring some info in database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeune</title>
		<link>http://www.pakzilla.com/2010/03/01/how-to-use-and-retain-twitter4j-oauth-access-token/comment-page-1/#comment-3946</link>
		<dc:creator>Jeune</dc:creator>
		<pubDate>Tue, 02 Mar 2010 12:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.pakzilla.com/?p=831#comment-3946</guid>
		<description>Hi there! 

I haven&#039;t tried the technique you&#039;re saying and I think it&#039;s hard. 

What I did was to get the token and token secret from the access token and associate it with a user. Then, I save it to the database. 

When I need the access token again because, say, the user needs to access his Twitter account via my app, I just get the token and tokensecret associated with the user and reconstruct the access token again. 

If I am not mistaken you can do it by

AccessToken accessToken = new AccessToken(token, tokenSecret); 

That will give you the access token that you got initially. 

I don&#039;t know though if this will work. It&#039;s been a while since I used Twitter4J and judging from the emails in the discussion groups so much has changed since then. 

Try verifying via the documentation. 

Goodluck! :D</description>
		<content:encoded><![CDATA[<p>Hi there! </p>
<p>I haven&#8217;t tried the technique you&#8217;re saying and I think it&#8217;s hard. </p>
<p>What I did was to get the token and token secret from the access token and associate it with a user. Then, I save it to the database. </p>
<p>When I need the access token again because, say, the user needs to access his Twitter account via my app, I just get the token and tokensecret associated with the user and reconstruct the access token again. </p>
<p>If I am not mistaken you can do it by</p>
<p>AccessToken accessToken = new AccessToken(token, tokenSecret); </p>
<p>That will give you the access token that you got initially. </p>
<p>I don&#8217;t know though if this will work. It&#8217;s been a while since I used Twitter4J and judging from the emails in the discussion groups so much has changed since then. </p>
<p>Try verifying via the documentation. </p>
<p>Goodluck! <img src='http://www.pakzilla.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tahir Akram</title>
		<link>http://www.pakzilla.com/2010/03/01/how-to-use-and-retain-twitter4j-oauth-access-token/comment-page-1/#comment-3944</link>
		<dc:creator>Tahir Akram</dc:creator>
		<pubDate>Tue, 02 Mar 2010 06:00:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.pakzilla.com/?p=831#comment-3944</guid>
		<description>Hi Jeune;

You this post was very helpful to me to understand all this concept. 
http://jeungun.wordpress.com/2009/09/03/quick-and-dirty-twitter4j-oauth-for-web-apps/

So to save these access tokens, I have to use cookies. I will get username from cookie, will fetch access tokens from database and user will in. 

This is what I am thinking if I save access tokens in DB. What you think about this technique, or you have any other idea.

Thanks for blogging on OAuth.</description>
		<content:encoded><![CDATA[<p>Hi Jeune;</p>
<p>You this post was very helpful to me to understand all this concept.<br />
<a href="http://jeungun.wordpress.com/2009/09/03/quick-and-dirty-twitter4j-oauth-for-web-apps/" rel="nofollow">http://jeungun.wordpress.com/2009/09/03/quick-and-dirty-twitter4j-oauth-for-web-apps/</a></p>
<p>So to save these access tokens, I have to use cookies. I will get username from cookie, will fetch access tokens from database and user will in. </p>
<p>This is what I am thinking if I save access tokens in DB. What you think about this technique, or you have any other idea.</p>
<p>Thanks for blogging on OAuth.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeune</title>
		<link>http://www.pakzilla.com/2010/03/01/how-to-use-and-retain-twitter4j-oauth-access-token/comment-page-1/#comment-3941</link>
		<dc:creator>Jeune</dc:creator>
		<pubDate>Mon, 01 Mar 2010 13:06:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.pakzilla.com/?p=831#comment-3941</guid>
		<description>Also, you should persist the access token so that you can use it again in the future.</description>
		<content:encoded><![CDATA[<p>Also, you should persist the access token so that you can use it again in the future.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

