Custom iOS Twitter Authentication page?

扶醉桌前 提交于 2019-12-24 01:48:34

问题


I am making a mobile application where users can connect their twitter accounts to the app. I am just kinda curious what's the best way to do it.

Right now, I would love to be able to make my own custom page (without having to use a UIWebView).

Is this possible? If how, so?

Thanks.


回答1:


As I understand, you don't want the user to be redirected to Twitter's OAuth authorization web page. You can use xAuth instead, but you have to send Twitter an email why you want this, and they won't allow xAuth for your app until it is in a very late development state (when your app is almost complete). You can find the manual for xAuth in the Twitter development documentation.

Basically, what xAuth does is it allows desktop and mobile applications to skip the request_token and authorize steps and jump right to the access_token step. This way, you can provide the user with custom fields (e.g. UITextField objects) to fill their username and password in. Just make sure you don't save them anywhere, only the access token. Good luck. :)




回答2:


A quick web search reveals MGTwitterEngine



来源:https://stackoverflow.com/questions/6156089/custom-ios-twitter-authentication-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!