安装原生的Facebook应用程序Facebook时采样会话登录Applicatiom不工作

问题描述:

如果手机已经有Facebook的本地应用程序安装了它去该应用程序使用户名后passowrd它开始加载和显示弹出浏览器使用时,点击它说浏览器告诉完整的行动
网页无法使用。

If the phone already has facebook native application installed it go to that application after giving the user name and passowrd it start loading and show pop telling complete action using browser when click the browser it says web page not available.

网页在fbconnect://成功#sucess_token = CAA ..可能temporarli,或者它已经permenantly移动到新网址。
没有回调调用应用程序。

the web page at fbconnect://success#sucess_token=CAA.. might be temporarli down or it may have moved permenantly to a new web address. There is no callback called to the application.

我创建了散列键正确我的应用程序SSO工作,在SDK 2.0版的罚款。因此它不能是混杂键不匹配。
当应用程序SessionLoginBehavior.SUP preSS_SSO模式下按预期工作。

I have created the hash key properly my application SSO work fine in the SDK version 2.0. So it can't be hash key mismatch. When the application SessionLoginBehavior.SUPPRESS_SSO mode it works as expected.

OpenRequest req=new OpenRequest(LoginActivity.this);
req.setPermissions(Arrays.asList("read_stream", "user_birthday","email"));
session.openForRead(req.setCallback(statusCallback));

有没有办法使用会话登录机制实现SSO的行为呢?我有搜索每一个地方,我没有找到答案。当本地Facebook应用程序有它开始失败。

Is there way to implement SSO behavior using session login mechanism? I have search every where i didn't find an answer. When the Native facebook application there it start to failed.

要生成散列关键字使用这种code。

to generate hash key use this code.

try {
            PackageInfo info = getPackageManager().getPackageInfo(
                    "com.facebook.scrumptious", PackageManager.GET_SIGNATURES);
            for (Signature signature : info.signatures) {
                MessageDigest md = MessageDigest.getInstance("SHA");
                md.update(signature.toByteArray());
                Log.d("YOURHASH KEY:",
                        Base64.encodeToString(md.digest(), Base64.DEFAULT));
            }
        } catch (NameNotFoundException e) {

        } catch (NoSuchAlgorithmException e) {

        }

thanks.