[英]Facebook Login issue when facebook app is installed in android
Hi I am using Facebook login in my app and I have following issues.. 嗨我在我的应用程序中使用Facebook登录,我有以下问题..
When there is no native facebook app is installed in phone, every thing is working fine and I am able to get the userInfo. 当手机中没有安装原生Facebook应用程序时,每件事都运行正常,我可以获得userInfo。
But if facebook app is installed, and when I try to login to facebook in my app, after logging in it is always going to session.isClosed() method every time. 但是如果安装了facebook应用程序,并且当我尝试在我的应用程序中登录到facebook时,登录后它总是每次都会转到session.isClosed()方法。
I was not able to get the data and no control on app after that. 之后我无法获取数据并且无法控制应用程序。
Is there any cache managment required to solve this? 是否需要缓存管理才能解决此问题? IF yes how to do that?
如果是的话怎么做?
You can try to use 你可以尝试使用
loginButton.setLoginBehavior(SessionLoginBehavior.SUPPRESS_SSO);
or 要么
Session.OpenRequest openRequest = new Sesion.OpenRequest(activity);
openRequest.setLoginBehavior(SessionLoginBehavior.SUPPRESS_SSO);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.