Custom iOS Twitter Authentication page?

2019-07-23 14:15发布

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.

2条回答
叼着烟拽天下
2楼-- · 2019-07-23 14:37

A quick web search reveals MGTwitterEngine

查看更多
祖国的老花朵
3楼-- · 2019-07-23 14:55

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. :)

查看更多
登录 后发表回答