简体   繁体   English

是否有任何库在iOS中实现twitter web view登录对话框

[英]Is there any library to implement twitter web view login dialog in iOS

i have an app that want to share to twitter 我有一个想要分享到Twitter的应用程序

when user click the share button and he has a token the app will process in the background and tweet using predefined message (user cannot change the message) 当用户单击共享按钮并且他有一个令牌时,应用程序将在后台处理并使用预定义消息进行推文(用户无法更改消息)

but if he/she doesn't have the token then the app will show popup login webview dialog to the user with our app name like in the picture. 但如果他/她没有令牌,则应用程序将向用户显示弹出式登录webview对话框,其中包含我们的应用程序名称,如图所示。

After he/she successfully login dismiss login dialog and the app will repeat step 1 (tweet in background) 他/她成功登录后解除登录对话框,应用程序将重复步骤1(后台推文)

在此输入图像描述

how can i archive this? 我怎么能存档这个? thanks. 谢谢。

参考FHSTwitterEngine你可以使用新的FHSTwitterEngine你需要发送消费者密钥和令牌以及screen_name ..

Solution to your problem is to implement the Single Sign on (SSO) using native App residing on Device. 解决您的问题的方法是使用驻留在Device上的本机App实现单点登录(SSO)。 Almost all the Social Framework SKD's are approaching to use the account information residing centrally on the device. 几乎所有社交框架SKD都在使用集中在设备上的帐户信息。 (That's called as SSO via Native) (通过Native称为SSO)

Please read more about it here 在这里阅读更多相关信息

Also if you face difficulty in implementing it, kindly use shareKit or PFTwitterUtils-NativeTwitter . 此外,如果您在实现它时遇到困难,请使用shareKitPFTwitterUtils-NativeTwitter

In ShareKit, you many need to perform a "Granular Install" to just link to "Twitter" library rather than all other bunch of Social Frameworks. 在ShareKit中,您需要执行“粒度安装”才能链接到“Twitter”库,而不是所有其他社交框架。

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

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