为什么我的 Facebook 应用程序出现错误 104(“无效签名”)?
我正在尝试使用 PyFacebook(托管在 Google App Engine 上)开发 Facebook 应用程序。它是一个 FBML 应用程序(在 Facebook 画布而不是 iframe 中运行)。我在获取任何 API 调用功能时遇到问题。序列看起来像这样:
fb = facebook.Faceboook(api_key, secret_key)
fb.session_key = cherrypy.request.params['fb_sig_session_key']
fb.uid =cherrypy.request.params['fb_sig_user']
然后,如果我尝试,例如:
user = fb.users.getLoggedInUser()
这将失败:
Error 104: Incorrect signature
我不确定哪里出错了。我已经验证 api_key 和 Secret_key 是正确的(很多很多次)。该应用程序已添加到我的帐户中。我什至能够让桌面应用程序正常运行;我的问题仅出在这个网络托管版本上。
感谢您的帮助!
I am trying to develop a Facebook application using PyFacebook (hosted on Google App Engine). It's an FBML application (runs in a Facebook canvas instead of an iframe). I'm having problems getting any API calls to function. The sequence looks like this:
fb = facebook.Faceboook(api_key, secret_key)
fb.session_key = cherrypy.request.params['fb_sig_session_key']
fb.uid =cherrypy.request.params['fb_sig_user']
Then if I try, for example:
user = fb.users.getLoggedInUser()
This will fail with:
Error 104: Incorrect signature
I'm not sure where I'm going wrong. I've verified that the api_key and secret_key are correct (many, many times). The application has been added to my account. I've even been able to get a desktop application working; my problem is only with this web-hosted version.
Thanks for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
删除 Facebook 应用程序并重新创建它,然后使用新的 API 密钥和密钥配置我的代码,解决了这个问题。
Deleting the Facebook application and re-creating it, then configuring my code with the new API key and secret key, resolved this problem.