lib/whatser/api/facebook.rb in whatser-0.3.1 vs lib/whatser/api/facebook.rb in whatser-0.3.2

- old
+ new

@@ -1,13 +1,15 @@ module Whatser class Facebook < Whatser::Service @key = 'facebook' - def get_friends(opts={}) - api_request :get, "/oauth/services/facebook/friends", {:query => opts}, :model => Whatser::User - end + class << self + def get_friends(opts={}) + api_request :get, "/oauth/services/facebook/friends", {:query => opts}, :model => Whatser::User + end - def wall_post(params={}) - api_request :post, "/oauth/services/facebook/publish", {:body => params} + def wall_post(params={}) + api_request :post, "/oauth/services/facebook/publish", {:body => params} + end end end end \ No newline at end of file