Posting Facebook status from Koala

119 views
Skip to first unread message

Mahboob Hussain

unread,
Aug 18, 2012, 7:05:22 PM8/18/12
to koala...@googlegroups.com
Hi,

I generated an access_token following the instructions on the page Authenticating as an App -

My Ruby code
@graph = Koala::Facebook::API.new('my_access_token')
@graph.get_object("me")
@graph.put_wall_post("I'm updating status from my Ruby program!")

I'm getting the error message

C:/Ruby193/lib/ruby/1.9.1/net/http.rb:799:in `connect': SSL_connect returned=1 e
rrno=0 state=SSLv3 read server certificate B: certificate verify failed (Faraday
::Error::ConnectionFailed)
        from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:799:in `block in connect'
        from C:/Ruby193/lib/ruby/1.9.1/timeout.rb:54:in `timeout'
        from C:/Ruby193/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
        from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:799:in `connect'
        from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:755:in `do_start'
        from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:744:in `start'
        from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:1284:in `request'
        from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:1026:in `get'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/faraday-0.8.4/lib/faraday/adapt
er/net_http.rb:72:in `perform_request'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/faraday-0.8.4/lib/faraday/adapt
er/net_http.rb:37:in `call'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/faraday-0.8.4/lib/faraday/reque
st/url_encoded.rb:14:in `call'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/faraday-0.8.4/lib/faraday/reque
st/multipart.rb:13:in `call'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/faraday-0.8.4/lib/faraday/conne
ction.rb:226:in `run_request'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/faraday-0.8.4/lib/faraday/conne
ction.rb:87:in `get'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/koala-1.5.0/lib/koala/http_serv
ice.rb:78:in `make_request'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/koala-1.5.0/lib/koala.rb:52:in
`make_request'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/koala-1.5.0/lib/koala/api.rb:51
:in `api'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/koala-1.5.0/lib/koala/api/graph
_api.rb:424:in `graph_call'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/koala-1.5.0/lib/koala/api/graph
_api.rb:49:in `get_object'
        from D:/MH-Programs/Ruby/multi-social-post.rb:23:in `<main>'

Any help/pointers greatly appreciated.

Thanks,
Mahboob 

Folivi Fofo

unread,
Oct 4, 2012, 3:27:45 AM10/4/12
to koala...@googlegroups.com
Hi, I run into this error after reinstalling my computer. Looks like a something is missing in your ruby intallation to handle your ssh key
try this out.
http://stackoverflow.com/questions/10775640/omniauth-facebook-error-faradayerrorconnectionfailed
I followed the instructions for mac and it worked great for me
Reply all
Reply to author
Forward
0 new messages