Hi Giovani, We're working on making this UI and configuration quirk more navigable.
You should set your application to a browser/web app, and use a placeholder URL (perhaps to your company's website) for your Callback URL. Then, when performing the oauth/request_token step, provide the custom URI scheme oauth_callback parameter that is relevant for you -- this will take precedence. In many ways, setting an app to "desktop" acts as a lock for certain kinds of applications, preventing their keys from being used outside of an out-of-band use case. Taylor On Wed, Feb 2, 2011 at 3:14 AM, giovani calota <[email protected]>wrote: > Hi , > > I'm having a problem setting a custom callback URL from my end. My URL > is something that twitter can't reach so I need to provide one from my > code. I've looked at all the examples but something is not right I'm > missing something , plus I have not seen an example similar to what I > am doing for example : > > " Pass oauth_callback={$url} when you get your request_token. Along > with the request token will be oauth_callback_confirmed=true. " > > Well I can't do the above. but what I can do is this : > > public TwitterAccess() { > > twitter = new Twitter(); > > twitter.setOAuthConsumer(consumer_key,consumer_secret); > > try { > requestToken = > twitter.getOAuthRequestToken(callbackUrl); > > } catch (TwitterException e) { > > But oops it's not working got the following error : > > twitter4j.TwitterException: 401:Authentication credentials were > missing or incorrect. > <?xml version="1.0" encoding="UTF-8"?> > <hash> > <request>/oauth/request_token</request> > <error>Desktop applications only support the oauth_callback value > 'oob'</error> > </hash> > > Ok I've done some reading on this but what I do not understand is if > put the value for oauth_callback = 'oob' how does Twitter know where > to redirect me so this is wrong !! : > > "You application looks to be registered as an "Desktop application" > which > doesn't accept callback url. > Try registering another application as a "Browser application" and get > another > token pair" > > What does this mean does Desktop App mean Client App ? when I've > created my application I could not define the callback URL because > it's a location that twitter can't reach through the web. Even dough > I've clicked on Browser Application after clicking Edit button you can > see that the value has been changed from Browser App to an Client > App !! > > Please, let me know what am I missing. > > -- > 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
