Android Facebook SDK SSO和“无法显示您请求的页面" [英] Android Facebook SDK SSO "the page you requested cannot be displayed"

查看:81
本文介绍了Android Facebook SDK SSO和“无法显示您请求的页面"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我整天都在困扰着这个非常令人沮丧的问题,而通过Google,我发现许多人遇到了同样的问题,却没有与Android新的Facebook API相关的答案.我完全按照这里列出的步骤进行操作:

I've been stuck on this very frustrating problem all day and through Google I've found many people with the same problem with no answers that relate to the new Facebook API for Android. I have followed the steps listed here exactly :

https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/

当我在设备上运行示例应用程序时,我得到了以下信息:

When I run the sample app on my device I get this:

当我在模拟器上运行它时,它可以工作.我了解这是由于Facebook的SSO实施.该模拟器未安装Facebook,因此首次成功登录,但设备启动了Facebook应用程序,由于某种原因给出了此错误,当我返回时,好像我根本没有登录到Facebook,并且没有活动的会话(尽管我是因为它启动了Facebook应用程序,所以我可以浏览朋友等)

When I run it on the emulator it works. I understand this to be because of Facebook's SSO implementation. The emulator does not have facebook installed so it signs in for the first time successfully, but the device launches the facebook app and for some reason gives this error and when I travel back, it is as if I am not logged into facebook at all and there is no active session (though I am because when it launches the facebook app I can browse friends, etc.)

我无法在我的设备上卸载Facebook,即使这样我也无法为应用程序用户所接受.如果可能的话,我想保留SSO功能,但是以某种方式使其起作用!

I cannot uninstall facebook on my device and even if I could that would be unacceptable for the app users. If possible, I'd like to retain the SSO feature, but somehow make it work!

我整天都在使用哈希密钥来回移动,并通过设备+代码和密钥工具生成它们,并且它们匹配,因此问题与此无关.此外,示例应用程序在模拟器上运行,这肯定意味着它存在SSO问题.预先感谢.

I have spent all day going back and forth with my Hash Keys, and generated them through my device+code and with the keytool and they match so the problem is not related to that. Besides, the sample app runs on the emulator which surely means its an SSO problem. Thanks in advance.

推荐答案

在我的代码和facebook文档扫描了8个小时后,我只是决定在平板电脑上更新我的facebook应用程序(我从没有使用过,因此也不会打扰进行更新),现在一切正常.

After 8 hours of scanning through my code and the facebook docs, I simply decided to update my facebook app on my tablet ( I never use it and so never bothered to update it ) and now it all works.

我猜平板电脑上的Facebook应用是Android上Facebook的SSO之前的版本,但是我创建的应用希望它得到支持并给出错误.

I guess the Facebook app on my tablet was pre-SSO of Facebook on Android, but my created app was expecting it to be supported and giving the error.

这篇关于Android Facebook SDK SSO和“无法显示您请求的页面"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆