Re: [twitter-dev] How to show An application would like to connect to your account EACH TIME users login into my service?

2010-02-02 Thread lalit goklani
There is no need for second authorization. You need to save oauth token and
secret
in your db and use it next time he tries to login. These will be valid
unless he cancels
the connection with your application. Read more documentation at
https://docs.google.com/View?docID=dcf2dzzs_2339fzbfsf4 for TwitterOauth-PHP
by Abraham Williams

Lalit
Twitter Facebook Application - http://www.twitsfb.com
Article Directory - http://www.ezinearticles.biz
Indian Mutual Funds - http://www.mutualfundsnavindia.com

On Tue, Feb 2, 2010 at 4:01 AM, dzuchara dzuch...@gmail.com wrote:

 Hello!

 Some info:

 http://twitter.com/oauth/authorize?oauth_token=Qpc0sU53wTy2Y68DHNZAcuUk6VeGxbojhmMvnZY0uQI
 An application would like to connect to your account
 Sponsored Tweets by IZEA, Inc.



 I'm developing a website which uses Twitter Oauth (PHP).

 Current behavior is the following:
  When it is a _first time_ when user log in into my service, he does
 Sign up in Twitter and Allow the application.
  When user logs in in _second time_, then there is NO authorization
 and NO Allow.
 It is OK that user is not asked for authorization, because he is still
 logged in (COOKIE exists).

 BUT the problem is that I want to show Allow window each time users
 logs in... How to do it ?

 This behavior has application mentioned in Some info... How can I
 achieve the same effect in my app?



Re: [twitter-dev] How to show An application would like to connect to your account EACH TIME users login into my service?

2010-02-02 Thread lalit goklani
You can also use 'force_login=true' parameter passed along with token while
you are getting the authorization url for the link. That will
always make user to login to twitter irrespective of they are logged in.

-- 
Thanks.
Lalit
Twitter Facebook Application - http://www.twitsfb.com
Article Directory - http://www.ezinearticles.biz
Indian Mutual Funds - http://www.mutualfundsnavindia.com


Re: [twitter-dev] What tools do you use?

2010-02-01 Thread lalit goklani
I use Zend_OAuth class along with Zend framework for twitter related
applications.  I use NetBeans IDE
for my development works.

Lalit
Twitter Facebook Application - http://www.twitsfb.com
Article Directory - http://www.ezinearticles.biz

On Sat, Jan 30, 2010 at 2:55 PM, Abraham Williams 4bra...@gmail.com wrote:

 Lets collect an awesome list of tools and applications we use to help
 develop with the Twitter API.

 I'll start the list with a couple that I use:

 Charles Proxy - @charlesproxy http://twitter.com/charlesproxy -
 http://www.charlesproxy.com/
 Charles is an HTTP proxy / HTTP monitor / Reverse Proxy that enables a
 developer to view all of the HTTP and SSL / HTTPS traffic between their
 machine and the Internet. This includes requests, responses and the HTTP
 headers (which contain the cookies and caching information)

 Hurl - @hurlit http://twitter.com/hurlit - http://hurl.it/
 Hurl makes HTTP requests. Enter a URL, set some headers, view the response,
 then share it with others. Perfect for demoing and debugging APIs.
 Hurl is also open source - http://defunkt.github.com/hurl/

 TwitterOAuth PHP Library - @oauthlib http://twitter.com/oauthlib -
 http://github.com/abraham/twitteroauth
 The first PHP Library to support OAuth for Twitter's REST API.
 MIT licensed.

 GitHub - @github http://twitter.com/github - https://github.com/
 GitHub is the easiest (and prettiest) way to participate in that
 collaboration: fork projects, send pull requests, monitor development, all
 with ease.

 What tools do you use while developing with the Twitter API?

 --
 Abraham Williams | Community Advocate | http://abrah.am
 Project | Out Loud | http://outloud.labs.poseurtech.com
 This email is: [ ] shareable [x] ask first [ ] private.
 Sent from Seattle, WA, United States



Re: [twitter-dev] Beginner question : How to get the user ID after authorize OAuth step?

2010-01-20 Thread lalit goklani
Pitt,

Oauth token will contain the userid, else you can use also use account
verify_credentials
from your client library to get the details of the user.
API Url:
http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-account%C2%A0verify_credentials

Lalit
http://www.twitsfb.com - Twitter Facebook Integration
http://www.ezinearticles.biz - Article Submission Directory

On Wed, Jan 20, 2010 at 6:26 AM, Pitt pierre.mar...@gmail.com wrote:

 Hi,
 I'm trying to implement a browser app and Im just blocking at the
 first step...
 After the user granted the access to his data (OAuth authorize step),
 I want to get the user's profile (users/show) but I don't know how to
 recover the user's id or screen_name...
 Sorry if I missed something in the API documentation but I really
 searched...
 ...And thank you in advance! :)
 Pitt



Re: [twitter-dev] Account linking with Thrid party Site and Twitter

2010-01-12 Thread lalit goklani
Ram,

Just allow them to authorize their twitter account from the existing control
panel
and on callback save their twitter id with existing id in the db table. You
will have
to create separate database column to save twitter id for associating it
with existing
id.

Next time, when they logon using twitter, you will look for their twitter id
and pull
up the already existing data from the table created by previous association.

Let me know if you need more explanation

Thanks.
Lalit Goklani
Manage Multiple Twitter Accounts From Facebook - http://bit.ly/6xcEnu

On Tue, Jan 12, 2010 at 2:47 AM, Ram Sharma ramsharma...@gmail.com wrote:

 Hi,

 I am working on an application which would integrate ‘Login with
 twitter’ as secondary login and registration mechanism. This
 application is also have some user base already.

 My question is : Is there any way with twitter API, so that I can Link
 existing users account with their twitter accounts. As if they login
 with their twitter account, he will get linked with his existing
 account on my application. This way his previous information would not
 be lost or he would not to have a new profile on same application with
 twitter account.

 This is something like Facebook’s account linking

 http://wiki.developers.facebook.com/index.php/Linking_Accounts_and_Finding_Friends

 Please let me know if it possible in any case, so that I propose the
 solution to my team.

 Ram Sharma