Re: [twitter-dev] Re: abraham / twitteroauth

2011-02-07 Thread Archia


Why are you sending users to clearsessions.php if you don't wan't the 
session data cleared? clearsessions.php is essentially a reset to simulate 
logging out of an application.

The library sends users to clearsessions.php out of the box, I was asking if 
not clearing the session data would cause problems in the library. 


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: abraham / twitteroauth

2011-02-06 Thread Abraham Williams
Why are you sending users to clearsessions.php if you don't wan't the
session data cleared? clearsessions.php is essentially a reset to simulate
logging out of an application.

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
@abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



On Thu, Feb 3, 2011 at 01:55, Archia tomarchib...@gmail.com wrote:

 The reason my insert code was not inserting the client tokens in my
 database after returning from Twitter and allowing access to my application
 was that clearsessions.php was, of all things, clearing the session
 variables! I use a session variable to identify my client when they log into
 my site, and then use this to know which record in my database to insert the
 tokens in. So, I disabled the call to session_destroy() in
 clearsessions.php. Are there consequences to doing this that I need to know
 about, or is it OK?

  --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: abraham / twitteroauth

2011-02-03 Thread Archia
The reason my insert code was not inserting the client tokens in my database 
after returning from Twitter and allowing access to my application was that 
clearsessions.php was, of all things, clearing the session variables! I use 
a session variable to identify my client when they log into my site, and 
then use this to know which record in my database to insert the tokens in. 
So, I disabled the call to session_destroy() in clearsessions.php. Are there 
consequences to doing this that I need to know about, or is it OK?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: abraham / twitteroauth

2011-02-02 Thread Abraham Williams
callback.php provides a good spot for saving access_tokens to a persistant
storage.

https://github.com/abraham/twitteroauth/blob/master/callback.php#L34

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
@abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



On Wed, Feb 2, 2011 at 07:15, Archia tomarchib...@gmail.com wrote:

 Yes, this will be good. Are the user's oAuth token and oAuth token secret
 retrieved from these lines in index.php?:

 /* Get user access tokens out of the session. */
 $access_token = $_SESSION['access_token'];
 $access_token['oauth_token'];
 $access_token['oauth_token_secret'];

 Thanks for your reply.

  --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: abraham / twitteroauth

2011-02-02 Thread Archia
On Wednesday, February 2, 2011 1:29:08 PM UTC-5, Abraham Williams wrote:

 callback.php provides a good spot for saving access_tokens to a persistant 
 storage. 

 https://github.com/abraham/twitteroauth/blob/master/callback.php#L34

 Abraham
 -
 Abraham Williams | Hacker Advocate | abrah.am
 @abraham https://twitter.com/abraham | github.com/abraham | 
 blog.abrah.am
 This email is: [ ] shareable [x] ask first [ ] private.



 On Wed, Feb 2, 2011 at 07:15, Archia tomarc...@gmail.com wrote:

 Yes, this will be good. Are the user's oAuth token and oAuth token secret 
 retrieved from these lines in index.php?:

 /* Get user access tokens out of the session. */
 $access_token = $_SESSION['access_token'];
 $access_token['oauth_token'];
 $access_token['oauth_token_secret'];

 Thanks for your reply.

  -- 
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker: 
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group: 
 http://groups.google.com/group/twitter-development-talk



Yes thanks, I found that. I added code to save the access tokens, but didn't 
get it quite right. I know this because I see the Twitter account that I'm 
connecting to has allowed my application access, but the tokens did not get 
inserted in my database. To troubleshoot my insert code, I'd like to restart 
the routine by revoking access to my application for this account at 
Twitter. Will this just prompt the Allow or Deny dialog again, or will it 
permanently revoke the access?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: abraham / twitteroauth

2011-02-02 Thread Abraham Williams
I will just revoke access until authorization happens again. You don't have
to revoke access though. You can just clear the sessions and go through the
flow. It will be the same you just won't have to click allow each time.

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
@abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



On Wed, Feb 2, 2011 at 11:22, Archia tomarchib...@gmail.com wrote:

 On Wednesday, February 2, 2011 1:29:08 PM UTC-5, Abraham Williams wrote:

 callback.php provides a good spot for saving access_tokens to a persistant
 storage.

 https://github.com/abraham/twitteroauth/blob/master/callback.php#L34

 Abraham
 -
 Abraham Williams | Hacker Advocate | abrah.am
 @abraham https://twitter.com/abraham | github.com/abraham |
 blog.abrah.am
 This email is: [ ] shareable [x] ask first [ ] private.



 On Wed, Feb 2, 2011 at 07:15, Archia tomarc...@gmail.com wrote:

 Yes, this will be good. Are the user's oAuth token and oAuth token secret
 retrieved from these lines in index.php?:

 /* Get user access tokens out of the session. */
 $access_token = $_SESSION['access_token'];
 $access_token['oauth_token'];
 $access_token['oauth_token_secret'];

 Thanks for your reply.

  --
 Twitter developer documentation and resources:
 http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk



 Yes thanks, I found that. I added code to save the access tokens, but
 didn't get it quite right. I know this because I see the Twitter account
 that I'm connecting to has allowed my application access, but the tokens did
 not get inserted in my database. To troubleshoot my insert code, I'd like to
 restart the routine by revoking access to my application for this account at
 Twitter. Will this just prompt the Allow or Deny dialog again, or will it
 permanently revoke the access?

  --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk