Re: [twitter-dev] How does one know when a user revoked an app?
Hi, You want to save their ID rather than their screen name, as screen names change often. And as Tom hinted at, there's no callback. You can either call verify_credentials the first time they show up, or wait till you attempt to make another call on their behalf and handle the failure due to incorrect credentials. Tim. On Sun, Sep 5, 2010 at 7:26 PM, StuFF mc wrote: > I couldn't find some "callback" but I obviously need to know when a > user revoked my app. Or maybe I'm doing something wrong. Probably. > Here's the idea: > > When a user accepted (we're speaking OAuth obviously) the app, I save > his screen_name. > > Based on that, I auto log him to twitter the next time he logs on the > website. > > If I don't have a screen_name, I will display a "sign in with twitter" > badge, instead of saying "@name is connected", but if a user revoke, I > still "think" I'm "connected/accepted". > > Cheers. > > -- > 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?hl=en > -- 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?hl=en
Re: [twitter-dev] How does one know when a user revoked an app?
You don't. All you can do is make an API request to verify_credentials and see if there is an error or not. Tom On 5 sep. 2010, at 12:26, StuFF mc wrote: > I couldn't find some "callback" but I obviously need to know when a > user revoked my app. Or maybe I'm doing something wrong. Probably. > Here's the idea: > > When a user accepted (we're speaking OAuth obviously) the app, I save > his screen_name. > > Based on that, I auto log him to twitter the next time he logs on the website. > > If I don't have a screen_name, I will display a "sign in with twitter" > badge, instead of saying "@name is connected", but if a user revoke, I > still "think" I'm "connected/accepted". > > Cheers. > > -- > 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?hl=en -- 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?hl=en
[twitter-dev] How does one know when a user revoked an app?
I couldn't find some "callback" but I obviously need to know when a user revoked my app. Or maybe I'm doing something wrong. Probably. Here's the idea: When a user accepted (we're speaking OAuth obviously) the app, I save his screen_name. Based on that, I auto log him to twitter the next time he logs on the website. If I don't have a screen_name, I will display a "sign in with twitter" badge, instead of saying "@name is connected", but if a user revoke, I still "think" I'm "connected/accepted". Cheers. -- 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?hl=en