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