Android的Facebook登录与web视图 [英] android facebook login with webview
问题描述
我在那里我使用Facebook登录Android应用程序。我的问题是这样的:如果我安装应用程序将从ADT一切运作良好,我能够通过Facebook应用程序,并通过web视图登录,但如果我从Play商店中下载的应用程序,我不能够通过Facebook应用程序登陆(虽然我通过登录web视图如果我卸载Facebook应用程序)。
I have an android app where I'm using Facebook login. My problem is this: if I install the application from ADT everything works well, I am able to login via Facebook app and via webview, but if I download the app from Playstore I'm not able to login via Facebook app (though I can login via webview if I uninstall the Facebook app).
现在,我想知道是否有可能通过,即使安装了Facebook应用程序的WebView强制登录。或如何使它工作两者兼得。
Now, I would like to know if is possible to force the login via webview even if the Facebook app is installed. Or how to make it work both ways.
谢谢!
推荐答案
如果u - [R使用 Facebook的LoginButton
进行登录,然后ü可以使用网页对话框登录。做到这一点:
if u r using Facebook LoginButton
for login, then u can use web dialog for login. do this:
LoginButton login = (LoginButton) view.findViewById(R.id.login_button);
login.setLoginBehavior(SessionLoginBehavior.SUPPRESS_SSO);
这篇关于Android的Facebook登录与web视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!