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

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

问题描述

我一直坚持这个非常令人沮丧的问题,通过Google我发现很多人都有同样的问题,没有与Android的新的Facebook API相关的答案。我已经按照这里列出的步骤:

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

当我在我的设备上运行示例应用程序时,我得到:



当我在模拟器上运行它是有效的。我明白这是因为Facebook的SSO实现。模拟器没有安装Facebook,所以首次登录成功,但是设备启动了Facebook应用程序,由于某种原因导致了这个错误,当我回来时,就好像我没有登录到Facebook,没有活动的会话(虽然我是因为启动Facebook应用程序时我可以浏览朋友等)



我无法卸载我的设备上的Facebook,即使我这可能对应用程序用户来说是不可接受的。如果可能,我想保留SSO功能,但是以某种方式使其正常工作!



我已经花了整整一天来和我的哈希键,并生成他们通过我的设备+代码和密钥工具,他们匹配,所以问题与此无关。此外,示例应用程序在仿真器上运行,这肯定意味着它的SSO问题。感谢提前。

解决方案

经过8个小时的扫描,我的代码和facebook文档,我只是决定更新我的Facebook应用程序在我的平板电脑(我从来没有使用它,所以从来没有打扰更新它),现在这一切都有效。



我猜我的平板电脑上的Facebook应用程序是pre-SSO Android上的Facebook,但我创建的应用程序期待它得到支持,并提供错误。


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:

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.)

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!

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.

解决方案

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.

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天全站免登陆