会议提供的未开封状态的请求 [英] Session Provided to a request in unopened state

查看:143
本文介绍了会议提供的未开封状态的请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Facebook的SDK 3.0显示Facebook好友选择器抽样误差dialoge框。 该消息框说: com.facebook.Facebook例外:会话提供给未开封状态的请求,

Facebook friend picker sample in the Facebook SDK 3.0 shows error dialoge box. the message box says: 'com.facebook.Facebook Exception : Session Provided to a request in unopened state.'

推荐答案

我有这个确切的错误,如果从Eclipse中运行这个然后有一个很好的机会,有一个在日志猫更详细的错误。对我来说,我找到了真正的错误是我的Andr​​oid hashkey没有和我已经给Facebook提供的hashkey匹配。

I had this exact error, if you are running this from Eclipse then there is a good chance there is a more detailed error in the log cat. For me I found the real error was that my Android hashkey did not match up with the hashkey I had provided to Facebook.

仔细检查您正在使用的hashkey是正确的。看到这个答案了设置hashkey

Double check that the hashkey you are using is correct. See this Answer for setting up your hashkey

键哈希Android的Facebook应用程序

此外,使用密钥并没有帮助我为我HashKey,而不是我遵循这个指南的建议:

Further, using the Keytool did not help me for my HashKey, instead I followed the advice on this guide:

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

在第4步,请参阅故障排除,并修改code输出你的HashKey,并使用一个替代。我从keytool生成的hashkey比这一个很大的不同。在此之后重新编译一切,它应该很好地工作。

In step 4, see Troubleshooting, and modify the code to output your HashKey and use that one instead. The hashkey I had generated from Keytool was much different than this one. After that recompile everything, it should work fine.

这篇关于会议提供的未开封状态的请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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