rails fb_graph通知因ssl而失败

时间:2014-11-13 22:24:33

标签: ruby-on-rails fb-graph

尝试在fb_graph gem和rails 3.2中发布通知。我们的行为与https://github.com/nov/fb_graph/wiki/notifications中描述的文档类似:​​

user = FbGraph::User.new('matake')
app = FbGraph::Application.new(APP_ID, :secret => APP_SECRET)

app.notify!(
  user,
  :href => 'http://matake.jp',
  :template => 'Your friend @[12345] achieved new badge!'
)

和替代方式:

user.notification!(
  :access_token => APP_ACCESS_TOKEN,
  :href => 'http://matake.jp',
  :template => 'Your friend @[12345] achieved new badge!'
)

都返回  SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: sslv3 alert handshake failure

是否需要SSL连接?有解决方法吗?

0 个答案:

没有答案