twitter-archive / twitter-kit-ios

Twitter Kit is a native SDK to include Twitter content inside mobile apps.
Apache License 2.0
688 stars 449 forks source link

v3.4.1 how to open webview auth page when I use [Twitter sharedInstance] logInWithCompletion:^**] method? #121

Open s1lence2012 opened 5 years ago

s1lence2012 commented 5 years ago

How to open webview auth page when I use [Twitter sharedInstance] logInWithCompletion:^**] method? or other way to login in with Twitter? ps: v3.4.1 in the project now.

Expected behavior

Open the app for authorization when the twitter app is installed, and open the webview page for authorization when the app is not installed.

Actual behavior

login in with Twitter is ok only when Twitter app is installed, it will false auth when Twitter app is not installed. It can't open the webview page when using this method.

Steps to reproduce the behavior

Just use [Twitter sharedInstance] logInWithCompletion:^**] method to auth before login in with Twitter.

Thanks.

s1lence2012 commented 5 years ago

I set callback url,then the problem had fixed.However, another issue has appeared, ....

√ if I hasn't installed the twitter app, it will open the web auth page.It seems ok. × If I install the twitter app, it will open the twitter app to auth, but when I cancel return to my app, it open the twitter web page authorization. Why? Now repeatedly evoke, how can I only evoke an authorization once? Help Please,tks....

zhangchangrui commented 4 years ago

ME,TOO I set callback url,then the problem had fixed.However, another issue has appeared, ....

√ if I hasn't installed the twitter app, it will open the web auth page.It seems ok. × If I install the twitter app, it will open the twitter app to auth, but when I cancel return to my app, it open the twitter web page authorization. Why? Now repeatedly evoke, how can I only evoke an authorization once? Help Please,tks....

zhangchangrui commented 4 years ago

我设置回调网址,然后问题已修复。但是,出现了另一个问题,....

√如果我没有安装推特应用程序,它将打开网络身份验证页面。似乎没问题。 ×如果我安装了Twitter应用程序,它将打开twitter应用程序进行身份验证,但是当我取消返回我的应用程序时,它会打开Twitter网页授权。为什么?现在反复唤起,我怎么才能唤起一次授权呢? 请帮助,请...

Hello, would you like to ask this question, have you solved it? I have encountered the same problem, if the solution hopes to tell how to solve it.

zhangchangrui commented 4 years ago

I set callback url,then the problem had fixed.However, another issue has appeared, ....

√ if I hasn't installed the twitter app, it will open the web auth page.It seems ok. × If I install the twitter app, it will open the twitter app to auth, but when I cancel return to my app, it open the twitter web page authorization. Why? Now repeatedly evoke, how can I only evoke an authorization once? Help Please,tks....

Hello, would you like to ask this question, have you solved it? I have encountered the same problem, if the solution hopes to tell how to solve it.