开发者

twitter oath authentication android

i am developing app.its having post message on facebook and twitter.i searched on net and got many example but i confused with twitter.

if i am using oath authentication how should i provide login screens for clients.many example

开发者_C百科what i found just they are using consumer and secret key where i need to pass uname,pword

can you pl suggest me its very urgent to me

Thanks in advance

Aswan


Twitter using oAuth at present, so whatever api's you will get, they will open the official twitter login page in webview, so you cannot use your own login page for that, twitter does not want's that........

Hope it help's you
Good luck.......


I've done this using a WebView (to hold the login UI which comes from twitter.com) and Signpost for the OAuth authentication. There's a good example here.

However, this turned out to be a less than brilliant mobile user experience - WebView login screens just suck - so I switched to using XAuth instead of OAuth, which you have to apply to Twitter for. The benefit of doing that is that you can have your own custom login UI, which isn't web-based. Unfortunately Signpost doesn't yet support XAuth so I also changed to using a stripped-down version of JTwitter.


If you are interested in using Singpost and Android's HttpURLConnection to obtain access token based on username and password you can have a look at my post. I was referring to Twitter XAuth so that's should be what you looking for. It works for me.

http://3citydev.blogspot.com/2013/05/how-to-obtain-xauth-access-token-using.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜