简体   繁体   English

使用iPhone上的xAuth和/或Web上的OAuth连接到Twitter?

[英]Connecting to Twitter using xAuth on iPhone and/or OAuth on Web?

I am building a Web site and iPhone app right now. 我现在正在建立一个网站和iPhone应用程序。 My site and app requires registration. 我的网站和应用程序需要注册。

I have received xAuth permission from Twitter and was going to use this for the iPhone app so that users can connect their Twitter account. 我已收到Twitter的xAuth许可,并打算将其用于iPhone应用程序,以便用户可以连接其Twitter帐户。

Once they connect their Twitter account, if they log in to the Web, is it possible to make it so their account is still connected? 一旦他们连接了他们的Twitter帐户,如果他们登录到Web,是否有可能使其仍保持其帐户连接?

On the other hand, I am using OAuth verification on the Web. 另一方面,我正在Web上使用OAuth验证。 If someone connects their Twitter account on the Web using OAuth, will they still be connected if logging onto the iPhone app? 如果有人使用OAuth在Web上连接其Twitter帐户,那么如果登录到iPhone应用程序,他们是否仍然可以连接?

So basically, I need to make: 所以基本上,我需要做:

User connects account on iPhone app (xAuth) -> User logs in to Web site and is still connected and can post to Twitter from both 用户在iPhone应用程序(xAuth)上连接帐户->用户登录到网站并仍然保持连接状态,并且可以从两个位置发布到Twitter

User connects on Web (OAuth) -> User logs in to iPhone app and is still connected and can post to Twitter from both 用户连接到Web(OAuth)->用户登录到iPhone应用程序,并且仍处于连接状态,并且可以从两者发布到Twitter

You can do this --- basically once you do the OAuth based login it generate unique Token, so after this data reading is done using Token. 您可以执行此操作---基本上,一旦执行基于OAuth的登录,它就会生成唯一的令牌,因此在使用令牌完成此数据读取之后。

Once you get Token (it can be in Phone/web) use this details between each other so that both of your application can do the rest of operation for the same user without further login. 一旦获得令牌(可以在电话/网络中使用),就可以在彼此之间使用此详细信息,以便两个应用程序都可以对同一用户执行其余操作,而无需进一步登录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM