Could i ask what your code looks like for posting an event (minus the
file)? ive tried a hash and json and all i get are errors like this:
can't convert RestClient::Payload::UrlEncoded into String
event_hash = {"name"=>"Tourdate St. Louis MO US", "location"=>"Fubar",
"end_time"=>1281409200000, "description"=>"This is the description of
the event", "start_time"=>1281398400000}
MiniFB.post(current_fanclub.facebook_page_access_token,
current_fanclub.facebook_page_name, event_hash)
MiniFB.post(current_fanclub.facebook_page_access_token,
current_fanclub.facebook_page_name, :params=>event_hash)
MiniFB.post(access_token,
account_id, :type=>'events', :params=>event_hash)
MiniFB.post(access_token,
account_id, :type=>'events', :params=>event_hash.merge(:type=>'events'))
No matter what i do the same error:
TypeError: can't convert RestClient::Payload::UrlEncoded into String
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/openssl/buffering.rb:170:in `<<'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/openssl/buffering.rb:170:in `do_write'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/openssl/buffering.rb:192:in `write'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/net/protocol.rb:177:in `write0'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/net/protocol.rb:153:in `write'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/net/protocol.rb:168:in `writing'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/net/protocol.rb:152:in `write'
from /Library/Ruby/Gems/1.8/gems/right_http_connection-1.2.4/lib/
net_fix.rb:98:in `send_request_with_body'
from /Library/Ruby/Gems/1.8/gems/right_http_connection-1.2.4/lib/
net_fix.rb:83:in `exec'
from /Library/Ruby/Gems/1.8/gems/right_http_connection-1.2.4/lib/
net_fix.rb:144:in `request'
from /Library/Ruby/Gems/1.8/gems/rest-client-1.6.0/lib/restclient/
request.rb:167:in `transmit'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/net/http.rb:543:in `start'
from /Library/Ruby/Gems/1.8/gems/rest-client-1.6.0/lib/restclient/
request.rb:166:in `transmit'
from /Library/Ruby/Gems/1.8/gems/rest-client-1.6.0/lib/restclient/
request.rb:60:in `execute'
from /Library/Ruby/Gems/1.8/gems/rest-client-1.6.0/lib/restclient/
request.rb:31:in `execute'
from /Library/Ruby/Gems/1.8/gems/rest-client-1.6.0/lib/restclient.rb:
72:in `post'
from /Users/jerrod/Sites/
network.roadrunnerrecords.com/vendor/plugins/
mini_fb/lib/mini_fb.rb:588:in `fetch'
from /Users/jerrod/Sites/
network.roadrunnerrecords.com/vendor/plugins/
mini_fb/lib/mini_fb.rb:537:in `post'