【问题标题】:Koala always get Koala::Facebook::ServerError when i add args hash当我添加 args 哈希时,考拉总是得到 Koala::Facebook::ServerError
【发布时间】:2014-01-21 10:36:16
【问题描述】:

当我这样做时:

graph.put_wall_post("test",{name: "test_post",link: LINK_URL})

我有一个错误:

*** Koala::Facebook::ServerError Exception: type: OAuthException, code: 2, message: An unexpected error has occurred. Please retry your request later. [HTTP 500]

【问题讨论】:

  • 所以你可以阅读,但不能写作?
  • 解决了!并感谢您的修订@majioa

标签: ruby-on-rails facebook-graph-api koala


【解决方案1】:

解决了!!

问题是来自 LINK_URL 变量的 URL 被 facebook 阻止。我认为在开发过程中使用该 URL 的测试太多。

当我尝试使用另一个 URL 时,它的工作原理!

【讨论】:

  • 这完全没有意义,FB_URL 的值是什么被阻止了,什么改变为你解决了?
  • “完全没有意义?”如果您在争论之前先尝试,我真的很感激,FB_URL 值“staging.xxxxxx.com”(在开发期间)被阻止,因为我在开发期间做了很多帖子。我只是将分期开发的 url 更改为“appdev.xxxxxx.com”
  • 那么您是说您的应用程序的 URL 配置错误?你在developer.facebook.com更新它?
  • 这与应用程序的 URL 无关,我的意思是 URL 是帖子上的 url 参数,创建帖子的示例包含指向时间线的链接:“Hi bla bla bla bla bla, go to staging.myapp.com for more info ",我的意思是那个链接 => staging.myapp.com
  • 您可以编辑您的答案以反映这一点吗?我将撤回我的反对票。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-12-08
  • 2012-09-03
  • 2014-02-22
相关资源
最近更新 更多