You should be consistently using https://api.twitter.com/oauth/* for the
paths -- are you being automatically redirected to the
http://m.twitter.comsubdomain or did you manually change your
configuration to go to that
When you say it "goes wrong" -- what is the behavior you are observing? The
calls for request_token and access_token should be made using a standard
HTTP library for your programming environment, but the authorize page should
be loaded in a web browser.
We shouldn't have any issue with your custom URI scheme on the request_token
Do you know if your device's clock is set correctly?
On Thu, Jul 15, 2010 at 12:21 AM, Mounir Regragui <reg.mou...@gmail.com>wrote:
> Hello Taylor,
> Thank you for helping me.
> I tried with these endpoints:
> DO work ont the emulator, doesn't on actual devices (tested on 5
> different android devices)
> Then i tried with these:
> Same thing, do work on the emulator, does not on actual devices.
> Here is a dump (header + string ^^) of the communication from the
> POST /oauth/request_token HTTP/1.1
> User-Agent: Java0
> Host: m.twitter.com
> Connection: Keep-Alive
> Content-Type: application/x-www-form-urlencoded
> authorization: OAuth oauth_callback="sociallib%3A%2F%2Freviens",
> oauth_signature_method="HMAC-SHA1", oauth_timestamp="1279177551",
> content-length: 0
> I'm afraid this has something to do with a twitter server filtering
> some user agents or because of my callback URI : sociallib://twitter
> I can't see other reasons why it is working flawlessly on the emulator
> and not on actual devices.
> If you need more details about what I'm doing, please feel free to
> Thanks again for helping me!
> On 14 juil, 22:17, Taylor Singletary <taylorsinglet...@twitter.com>
> > Hi Mounir,
> > Can you detail step-by-step the full URLs and OAuth headers/query string
> > parameters you are using throughout these steps? This should all be
> > consistently achievable if you're using all the right end points.
> > Taylor
> > On Tue, Jul 13, 2010 at 1:46 AM, Mounir Regragui <reg.mou...@gmail.com
> > > Hello everybody!
> > > So I'm developping an application on Android that will include some
> > > Twitter features.
> > > But I have some trouble retrieving the requestToken on OAuth.
> > > Everything works just fine on the emulator, but on actual devices I
> > > can't retrieve the requestToken for a simple reason.
> > > From the emulator, I get my response containing the requestToken and
> > > the secret, so I can fetch these informations.
> > > But on actual devices, I do not receive the string containing the
> > > secret and token, but i get a HTML page, redirecting me to
> > > m.twitter.com : <html><body>You are being <a href="http://
> > > mobile.twitter.com">redirected</a>.</body></html>
> > > I really need not to be redirected to get my informations, as I'm not
> > > running the request token process from a browser, but from and android
> > > application. Plus, the redirection to mobile.twitter.com is really NOT
> > > what I'm trying to achieve ^^
> > > Any thoughts. I'd be grateful if someone could help me.
> > > If you need additional informations, please feel free to ask.