1

尝试在 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 连接?有解决方法吗?

4

0 回答 0